diff options
author | Christian Hesse <mail@eworm.de> | 2020-10-07 15:28:19 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2020-10-07 23:27:09 +0200 |
commit | 2be4a2ce9888f1c78f516bac5587e6a5e0e18655 (patch) | |
tree | 34188a0981ffa4f21803bbfd46d999fe4eb67402 | |
parent | 38a3ef955293d51971f11149f37de75ebb1a630d (diff) |
cloud-backup: send notification on error and do exit
-rw-r--r-- | cloud-backup | 4 |
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; } |