summaryrefslogtreecommitdiffstats
path: root/lib/App
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2017-11-22 19:51:43 +0100
committerFlorian Pritz <bluewind@xinu.at>2017-11-22 19:51:43 +0100
commite0652120fe42a16c11bb01e737b60f5ed78fd010 (patch)
treec7b2a0b7c6c1a0a3a6f5114eaf1a6cd53b9b4fc6 /lib/App
parent0b7c809d2680fdb1d4dd17eec296fa3fe0a42c14 (diff)
downloadApp-BorgRestore-e0652120fe42a16c11bb01e737b60f5ed78fd010.tar.gz
App-BorgRestore-e0652120fe42a16c11bb01e737b60f5ed78fd010.tar.xz
Log warning if no archives are detected in borg output
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'lib/App')
-rw-r--r--lib/App/BorgRestore/Borg.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/App/BorgRestore/Borg.pm b/lib/App/BorgRestore/Borg.pm
index c9e4490..c8a6833 100644
--- a/lib/App/BorgRestore/Borg.pm
+++ b/lib/App/BorgRestore/Borg.pm
@@ -72,6 +72,8 @@ method borg_list() {
}
}
+ $log->warning("No archives detected in borg output. Either you have no backups or this is a bug") if @archives == 0;
+
return \@archives;
}
@@ -106,6 +108,8 @@ method borg_list_time() {
}
}
+ $log->warning("No archives detected in borg output. Either you have no backups or this is a bug") if @archives == 0;
+
return \@archives;
}