mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
upload-backup: use $LogPrintExit
This commit is contained in:
parent
03ae65c5f1
commit
413287586f
1 changed files with 2 additions and 2 deletions
|
@ -38,7 +38,7 @@
|
|||
user=$BackupUploadUser password=$BackupUploadPass src-path=($FileName . ".backup");
|
||||
:set BackupFile ($FileName . ".backup");
|
||||
} on-error={
|
||||
:log error ("Uploading backup file failed!");
|
||||
$LogPrintExit error ("Uploading backup file failed!") false;
|
||||
:set BackupFile "failed";
|
||||
}
|
||||
}
|
||||
|
@ -52,7 +52,7 @@
|
|||
user=$BackupUploadUser password=$BackupUploadPass src-path=($FileName . ".rsc");
|
||||
:set ConfigFile ($FileName . ".rsc");
|
||||
} on-error={
|
||||
:log error ("Uploading configuration export failed!");
|
||||
$LogPrintExit error ("Uploading configuration export failed!") false;
|
||||
:set ConfigFile "failed";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue