mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-06-20 17:15:48 +02:00
mod/scriptrunonce: :do ... on-error=... -> :onerror ... do=...
This commit is contained in:
parent
314e68e4cd
commit
9ae21c00bd
1 changed files with 3 additions and 3 deletions
|
@ -41,11 +41,11 @@
|
|||
:return false;
|
||||
}
|
||||
|
||||
:do {
|
||||
:onerror Err {
|
||||
$LogPrint info $0 ("Running script '" . $Script . "' now.");
|
||||
[ :parse $Source ];
|
||||
} on-error={
|
||||
$LogPrint warning $0 ("The script '" . $Script . "' failed to run!");
|
||||
} do={
|
||||
$LogPrint warning $0 ("The script '" . $Script . "' failed to run: " . $Err);
|
||||
:return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue