changeset 12427:3704b4f8b2be

8131665: Bad exception message in HandshakeHash.getFinishedHash Reviewed-by: xuelei
author coffeys
date Fri, 17 Jul 2015 10:37:25 +0100
parents 6dd82d2e4a10
children 9a05d7e16d8e
files src/java.base/share/classes/sun/security/ssl/HandshakeHash.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.base/share/classes/sun/security/ssl/HandshakeHash.java	Thu Jul 16 19:31:55 2015 -0700
+++ b/src/java.base/share/classes/sun/security/ssl/HandshakeHash.java	Fri Jul 17 10:37:25 2015 +0100
@@ -355,7 +355,7 @@
         try {
             return cloneDigest(finMD).digest();
         } catch (Exception e) {
-            throw new Error("BAD");
+            throw new Error("Error during hash calculation", e);
         }
     }
 }