8185855: Debug exception stacks should be clearer

Reviewed-by: mullan, ascarpino
This commit is contained in:
Sean Coffey 2017-12-06 14:33:33 +00:00
parent a923e57c7b
commit 0c7be1d9e7
11 changed files with 15 additions and 24 deletions

View file

@ -75,8 +75,8 @@ public class AnchorCertificates {
} catch (Exception e) {
if (debug != null) {
debug.println("Error parsing cacerts");
e.printStackTrace();
}
e.printStackTrace();
}
return null;
}

View file

@ -386,8 +386,9 @@ public class SignatureFileVerifier {
if (e.getMessage() != null) {
debug.println(key + ": " + e.getMessage());
} else {
debug.println(key + ": " + algorithm +
" was disabled, no exception msg given.");
debug.println("Debug info only. " + key + ": " +
algorithm +
" was disabled, no exception msg given.");
e.printStackTrace();
}
}