aboutsummaryrefslogtreecommitdiffstats
path: root/cloud-backup
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2020-10-07 15:28:19 +0200
committerGravatar Christian Hesse <mail@eworm.de>2020-10-07 23:27:09 +0200
commit2be4a2ce9888f1c78f516bac5587e6a5e0e18655 (patch)
tree34188a0981ffa4f21803bbfd46d999fe4eb67402 /cloud-backup
parent38a3ef955293d51971f11149f37de75ebb1a630d (diff)
cloud-backup: send notification on error and do exit
Diffstat (limited to 'cloud-backup')
-rw-r--r--cloud-backup4
1 files changed, 3 insertions, 1 deletions
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;
}