diff options
-rw-r--r-- | lib/App/BorgRestore/Borg.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/App/BorgRestore/Borg.pm b/lib/App/BorgRestore/Borg.pm index 4dc1055..89a0b3a 100644 --- a/lib/App/BorgRestore/Borg.pm +++ b/lib/App/BorgRestore/Borg.pm @@ -35,7 +35,7 @@ method borg_list() { my @archives; $log->debug("Getting archive list"); - run [qw(borg list), $self->{borg_repo}], '>', \my $output or die "borg list returned $?"; + run [qw(borg list), $self->{borg_repo}], '>', \my $output or die $log->error("borg list returned $?")."\n"; for (split/^/, $output) { if (m/^([^\s]+)\s/) { @@ -50,7 +50,7 @@ method borg_list_time() { my @archives; $log->debug("Getting archive list"); - run [qw(borg list), $self->{borg_repo}], '>', \my $output or die "borg list returned $?"; + run [qw(borg list), $self->{borg_repo}], '>', \my $output or die $log->error("borg list returned $?")."\n"; for (split/^/, $output) { if (m/^([^\s]+)\s+(.+)$/) { |