From b1cd0de7d4a13776f8316684844642ade2ea0349 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sun, 2 Apr 2017 14:00:43 +0200 Subject: Use Carp for find_archives errors Signed-off-by: Florian Pritz --- script/borg-restore.pl | 6 ------ 1 file changed, 6 deletions(-) (limited to 'script') diff --git a/script/borg-restore.pl b/script/borg-restore.pl index 1fdc758..a6d3b43 100755 --- a/script/borg-restore.pl +++ b/script/borg-restore.pl @@ -268,13 +268,7 @@ sub main { my $archives = $app->find_archives($backup_path); - if (!@$archives) { - $log->fatal("No archives found for path"); - return 1; - } - my $selected_archive; - if (defined($timespec)) { $selected_archive = $app->select_archive_timespec($archives, $timespec); } else { -- cgit v1.2.3-24-g4f1b