mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-06-21 01:15:42 +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;
|
:return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
:do {
|
:onerror Err {
|
||||||
$LogPrint info $0 ("Running script '" . $Script . "' now.");
|
$LogPrint info $0 ("Running script '" . $Script . "' now.");
|
||||||
[ :parse $Source ];
|
[ :parse $Source ];
|
||||||
} on-error={
|
} do={
|
||||||
$LogPrint warning $0 ("The script '" . $Script . "' failed to run!");
|
$LogPrint warning $0 ("The script '" . $Script . "' failed to run: " . $Err);
|
||||||
:return false;
|
:return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue