From 9b9bf92e5f83102742036aa98a4c6c73f758c302 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sun, 2 Apr 2017 21:30:45 +0200 Subject: die instead of returning undef in select_archive_timespec Signed-off-by: Florian Pritz --- lib/App/BorgRestore.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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 { -- cgit v1.2.3-24-g4f1b