summaryrefslogtreecommitdiffstats
path: root/lib/App
diff options
context:
space:
mode:
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;
}