Skip to content

Commit

Permalink
FIX [ISSUE alibaba#12446] macInstance 补充日志
Browse files Browse the repository at this point in the history
  • Loading branch information
fuhouyu committed Jul 31, 2024
1 parent 3967c91 commit 1b5cb99
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,9 @@ private Mac getMacInstance(Key key) {
Mac instance = Mac.getInstance(jcaName);
instance.init(key);
return instance;
} catch (NoSuchAlgorithmException | InvalidKeyException e) {
} catch (NoSuchAlgorithmException e) {
throw new IllegalArgumentException("No Such Algorithm: " + jcaName);
} catch (InvalidKeyException e) {
throw new IllegalArgumentException("Invalid key: " + key);
}
}
Expand Down

0 comments on commit 1b5cb99

Please sign in to comment.