Utils: Enhance exception message for ticket #2296

This commit is contained in:
zzz
2018-09-26 14:04:36 +00:00
parent 34f0d7d7b3
commit 39aa2c597e

View File

@ -190,7 +190,7 @@ public final class SigUtil {
else if (spec.equals(SigType.ECDSA_SHA512_P521.getParams()))
type = SigType.ECDSA_SHA512_P521;
else
throw new IllegalArgumentException("Unknown EC type");
throw new IllegalArgumentException("Unknown EC type: " + pk.getClass() + " spec: " + spec.getClass());
return fromJavaKey(k, type);
}
if (pk instanceof EdDSAPrivateKey) {