diff options
author | Florian Pritz <bluewind@xinu.at> | 2017-04-02 15:05:13 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2017-04-02 22:31:49 +0200 |
commit | 6e83ac2364202c5254d5c99b50b7a4cd2cec868c (patch) | |
tree | ffca2f3c71d78a80cfc71dc3e8d88fe8c10e69c8 | |
parent | 27c31cbdd5f14f66457960c66e09c6c6d0f5baab (diff) | |
download | App-BorgRestore-6e83ac2364202c5254d5c99b50b7a4cd2cec868c.tar.gz App-BorgRestore-6e83ac2364202c5254d5c99b50b7a4cd2cec868c.tar.xz |
Only output die() message once
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rwxr-xr-x | script/borg-restore.pl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/script/borg-restore.pl b/script/borg-restore.pl index 4d6cc0d..e79b174 100755 --- a/script/borg-restore.pl +++ b/script/borg-restore.pl @@ -227,7 +227,8 @@ sub main { return if($^S); local $Log::Log4perl::caller_depth = $Log::Log4perl::caller_depth + 1; - Log::Log4perl->get_logger()->logdie(@_); + Log::Log4perl->get_logger()->fatal(@_); + exit(2); }; my %opts; |