mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-06-21 02:05:40 +02:00
ppp-on-up: use :onerror for outer block
This commit is contained in:
parent
9a5a2aec4f
commit
aeccd36f16
1 changed files with 3 additions and 3 deletions
|
@ -12,7 +12,7 @@
|
|||
:while ($GlobalFunctionsReady != true) do={ :delay 500ms; }
|
||||
|
||||
:local ExitOK false;
|
||||
:do {
|
||||
:onerror Err {
|
||||
:local ScriptName [ :jobname ];
|
||||
|
||||
:global LogPrint;
|
||||
|
@ -39,6 +39,6 @@
|
|||
$LogPrint warning $ScriptName ("Running script '" . $ScriptName . "' failed!");
|
||||
}
|
||||
}
|
||||
} on-error={
|
||||
:global ExitError; $ExitError $ExitOK [ :jobname ];
|
||||
} do={
|
||||
:global ExitError; $ExitError $ExitOK [ :jobname ] $Err;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue