summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/App/BorgRestore.pm1
-rwxr-xr-xscript/borg-restore.pl6
2 files changed, 1 insertions, 6 deletions
diff --git a/lib/App/BorgRestore.pm b/lib/App/BorgRestore.pm
index 0c61312..d5901c1 100644
--- a/lib/App/BorgRestore.pm
+++ b/lib/App/BorgRestore.pm
@@ -158,6 +158,7 @@ sub find_archives {
if (!@ret) {
$log->warningf("Path '%s' not found in any archive.\n", $path);
+ croak "Failed to find archives for path";
}
@ret = sort { $a->{modification_time} <=> $b->{modification_time} } @ret;
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 {