cloud-backup: use $LogPrintExit

This commit is contained in:
Christian Hesse 2020-04-03 17:30:00 +02:00
parent 1f1fef9fb5
commit 03ae65c5f1

View file

@ -9,6 +9,7 @@
:global Identity;
:global DeviceInfo;
:global LogPrintExit;
:global SendNotification;
:do {
@ -31,5 +32,5 @@
"Size: " . $Cloud->"size" . "\n" . \
"Download key: " . $Cloud->"secret-download-key") "" "true";
} on-error={
:log error ("Failed uploading backup for " . $Identity . " to cloud.");
$LogPrintExit error ("Failed uploading backup for " . $Identity . " to cloud.") false;
}