summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2017-04-02 15:05:13 +0200
committerFlorian Pritz <bluewind@xinu.at>2017-04-02 22:31:49 +0200
commit6e83ac2364202c5254d5c99b50b7a4cd2cec868c (patch)
treeffca2f3c71d78a80cfc71dc3e8d88fe8c10e69c8
parent27c31cbdd5f14f66457960c66e09c6c6d0f5baab (diff)
downloadApp-BorgRestore-6e83ac2364202c5254d5c99b50b7a4cd2cec868c.tar.gz
App-BorgRestore-6e83ac2364202c5254d5c99b50b7a4cd2cec868c.tar.xz
Only output die() message once
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rwxr-xr-xscript/borg-restore.pl3
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;