From 2be4a2ce9888f1c78f516bac5587e6a5e0e18655 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 7 Oct 2020 15:28:19 +0200 Subject: cloud-backup: send notification on error and do exit --- cloud-backup | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cloud-backup') diff --git a/cloud-backup b/cloud-backup index eb3267d..f6f2d28 100644 --- a/cloud-backup +++ b/cloud-backup @@ -34,5 +34,7 @@ "Size: " . $Cloud->"size" . "\n" . \ "Download key: " . $Cloud->"secret-download-key") "" "true"; } on-error={ - $LogPrintExit error ("Failed uploading backup for " . $Identity . " to cloud.") false; + $SendNotification ([ $SymbolForNotification "warning-sign" ] . "Cloud backup failed") \ + ("Failed uploading backup for " . $Identity . " to cloud!\n\n" . [ $DeviceInfo ]); + $LogPrintExit error ("Failed uploading backup for " . $Identity . " to cloud!") true; } -- cgit v1.2.3-70-g09d2