summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2017-04-02 21:30:45 +0200
committerFlorian Pritz <bluewind@xinu.at>2017-04-02 22:31:49 +0200
commit9b9bf92e5f83102742036aa98a4c6c73f758c302 (patch)
tree2561d82230e305dd5c0c0a94b00c5da7ef61b40b
parent8f2d7fae7df3bdb5abdf9914ca0e88453a310d00 (diff)
downloadApp-BorgRestore-9b9bf92e5f83102742036aa98a4c6c73f758c302.tar.gz
App-BorgRestore-9b9bf92e5f83102742036aa98a4c6c73f758c302.tar.xz
die instead of returning undef in select_archive_timespec
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rw-r--r--lib/App/BorgRestore.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/App/BorgRestore.pm b/lib/App/BorgRestore.pm
index a0537cd..c300a0b 100644
--- a/lib/App/BorgRestore.pm
+++ b/lib/App/BorgRestore.pm
@@ -188,7 +188,7 @@ sub select_archive_timespec {
}
}
- return;
+ die "Failed to find archive matching time specification\n";
}
sub format_timestamp {