From a495f2275c233c6ed7989697da67823e122d5e26 Mon Sep 17 00:00:00 2001 From: Paul Schaub Date: Thu, 24 Nov 2022 21:34:25 +0100 Subject: [PATCH] Precise error message for IntegrityProtectedInputStream --- .../decryption_verification/IntegrityProtectedInputStream.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pgpainless-core/src/main/java/org/pgpainless/decryption_verification/IntegrityProtectedInputStream.java b/pgpainless-core/src/main/java/org/pgpainless/decryption_verification/IntegrityProtectedInputStream.java index 286160e8..37dcfca4 100644 --- a/pgpainless-core/src/main/java/org/pgpainless/decryption_verification/IntegrityProtectedInputStream.java +++ b/pgpainless-core/src/main/java/org/pgpainless/decryption_verification/IntegrityProtectedInputStream.java @@ -53,7 +53,7 @@ public class IntegrityProtectedInputStream extends InputStream { } LOGGER.debug("Integrity Protection check passed"); } catch (PGPException e) { - throw new IOException("Failed to verify integrity protection", e); + throw new IOException("Data appears to not be integrity protected.", e); } } }