Skip to content

Commit a5aba02

Browse files
committed
[CODEC-152] DigestUtils.getDigest(String) looses the orginal exception.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/codec/trunk@1379796 13f79535-47bb-0310-9956-ffa450edef68
1 parent 53f8961 commit a5aba02

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

src/changes/changes.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ The <action> type attribute can be add,update,fix,remove.
5151
</release>
5252
-->
5353
<release version="1.7" date="TBD" description="Feature and fix release.">
54+
<action issue="CODEC-152" dev="ggregory" type="add" due-to="ggregory">
55+
DigestUtils.getDigest(String) looses the orginal exception.
56+
</action>
5457
<action issue="CODEC-148" dev="ggregory" type="add" due-to="lathspell">
5558
More tests and minor things.
5659
</action>

src/main/java/org/apache/commons/codec/digest/DigestUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public static MessageDigest getDigest(String algorithm) {
8585
try {
8686
return MessageDigest.getInstance(algorithm);
8787
} catch (NoSuchAlgorithmException e) {
88-
throw new RuntimeException(e.getMessage());
88+
throw new RuntimeException(e);
8989
}
9090
}
9191

0 commit comments

Comments
 (0)