diff options
author | Florian Pritz <bluewind@xinu.at> | 2017-11-22 19:51:43 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2017-11-22 19:51:43 +0100 |
commit | e0652120fe42a16c11bb01e737b60f5ed78fd010 (patch) | |
tree | c7b2a0b7c6c1a0a3a6f5114eaf1a6cd53b9b4fc6 /lib/App/BorgRestore | |
parent | 0b7c809d2680fdb1d4dd17eec296fa3fe0a42c14 (diff) | |
download | App-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/BorgRestore')
-rw-r--r-- | lib/App/BorgRestore/Borg.pm | 4 |
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; } |