We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc88997 commit bd994f9Copy full SHA for bd994f9
1 file changed
base/src/main/java/org/mozilla/jss/netscape/security/pkcs/PKCS7.java
@@ -176,12 +176,11 @@ private void parse(DerInputStream derin) throws ParsingException {
176
if (contentType.equals(ContentInfo.SIGNED_DATA_OID)) {
177
parseSignedData(contentInfo.getContent());
178
} else {
179
- throw new ParsingException("content type " + contentType +
180
- " not supported.");
+ throw new ParsingException("Content type " + contentType + " not supported");
181
}
182
} catch (IOException e) {
183
- ParsingException pe =
184
- new ParsingException("IOException: " + e.getMessage());
+ ParsingException pe = new ParsingException(
+ "Unable to parse PKCS #7: " + e.getMessage(), e);
185
pe.fillInStackTrace();
186
throw pe;
187
0 commit comments