summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/App/BorgRestore.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/App/BorgRestore.pm b/lib/App/BorgRestore.pm
index cde587b..ee82d01 100644
--- a/lib/App/BorgRestore.pm
+++ b/lib/App/BorgRestore.pm
@@ -173,8 +173,8 @@ sub select_archive_timespec {
my $seconds = $self->_timespec_to_seconds($timespec);
if (!defined($seconds)) {
- $log->error("Invalid time specification");
- return;
+ $log->errorf("Invalid time specification: %s", $timespec);
+ croak "Invalid time specification";
}
my $target_timestamp = time - $seconds;