1
0
mirror of https://github.com/eworm-de/routeros-scripts.git synced 2024-05-11 05:55:19 +00:00

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;
}