fix: add output to encrypt exception message

This commit is contained in:
Victor Westerlund 2023-08-29 11:38:45 +02:00 committed by GitHub
parent 1f32cb95bf
commit 81feb49ac2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -153,7 +153,7 @@
$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