From 81feb49ac2f43a8cf963f7598d0b0b957ec81acf Mon Sep 17 00:00:00 2001 From: Victor Westerlund Date: Tue, 29 Aug 2023 11:38:45 +0200 Subject: [PATCH] fix: add output to encrypt exception message --- src/FileEncryption.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/FileEncryption.php b/src/FileEncryption.php index ddda4ea..80338ab 100644 --- a/src/FileEncryption.php +++ b/src/FileEncryption.php @@ -153,10 +153,10 @@ $encrypt = $this->exec(ShellCommands::AGE, $cmd); if (!is_null($encrypt)) { - throw new \Exception("Failed to encrypt '{$this->input}' using public key '{$this->public_key}'"); + throw new \Exception("Failed to encrypt '{$this->input}' to '{$output}' using public key '{$this->public_key}'"); } // Return keypair return $this->get_keypair(); } - } \ No newline at end of file + }