From 6e83ac2364202c5254d5c99b50b7a4cd2cec868c Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sun, 2 Apr 2017 15:05:13 +0200 Subject: Only output die() message once Signed-off-by: Florian Pritz --- script/borg-restore.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'script') 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; -- cgit v1.2.3-24-g4f1b