mirror of
https://codeberg.org/vlw/php-age.git
synced 2025-09-14 00:13:42 +02:00
fix: add output to encrypt exception message
This commit is contained in:
parent
1f32cb95bf
commit
81feb49ac2
1 changed files with 2 additions and 2 deletions
|
@ -153,10 +153,10 @@
|
||||||
$encrypt = $this->exec(ShellCommands::AGE, $cmd);
|
$encrypt = $this->exec(ShellCommands::AGE, $cmd);
|
||||||
|
|
||||||
if (!is_null($encrypt)) {
|
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 keypair
|
||||||
return $this->get_keypair();
|
return $this->get_keypair();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue