summaryrefslogtreecommitdiffstats
path: root/lib/App
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2017-04-02 14:00:43 +0200
committerFlorian Pritz <bluewind@xinu.at>2017-04-02 14:00:43 +0200
commitb1cd0de7d4a13776f8316684844642ade2ea0349 (patch)
treef135dc0a0b98ca2cd9dd8b7f876b8c6f61431adf /lib/App
parentab037ebb9332f30d806b2c2ed2ffff55c1874709 (diff)
downloadApp-BorgRestore-b1cd0de7d4a13776f8316684844642ade2ea0349.tar.gz
App-BorgRestore-b1cd0de7d4a13776f8316684844642ade2ea0349.tar.xz
Use Carp for find_archives errors
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'lib/App')
-rw-r--r--lib/App/BorgRestore.pm1
1 files changed, 1 insertions, 0 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;