From e0652120fe42a16c11bb01e737b60f5ed78fd010 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Wed, 22 Nov 2017 19:51:43 +0100 Subject: Log warning if no archives are detected in borg output Signed-off-by: Florian Pritz --- lib/App/BorgRestore/Borg.pm | 4 ++++ 1 file changed, 4 insertions(+) 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; } -- cgit v1.2.3-24-g4f1b