diff --git a/pgpainless-sop/src/main/java/org/pgpainless/sop/commands/Decrypt.java b/pgpainless-sop/src/main/java/org/pgpainless/sop/commands/Decrypt.java index ec911082..4d1ca712 100644 --- a/pgpainless-sop/src/main/java/org/pgpainless/sop/commands/Decrypt.java +++ b/pgpainless-sop/src/main/java/org/pgpainless/sop/commands/Decrypt.java @@ -151,7 +151,8 @@ public class Decrypt implements Runnable { Streams.pipeAll(decryptionStream, System.out); decryptionStream.close(); } catch (IOException e) { - return; + err_ln("Unable to decrypt: " + e.getMessage()); + System.exit(29); } if (verifyOut == null) { return;