From 108d6cb8417e688e27dc2e51a4cd066e38738581 Mon Sep 17 00:00:00 2001 From: Paul Schaub Date: Fri, 19 Feb 2021 21:18:08 +0100 Subject: [PATCH] sop: Do not swallow EOFExceptions and return 29 instead Related to #78 --- .../src/main/java/org/pgpainless/sop/commands/Decrypt.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;