mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2026-03-06 05:59:36 +00:00
netwatch-notify: use :onerror for outer block
This commit is contained in:
parent
3a123fef0f
commit
f7baf900ca
1 changed files with 3 additions and 3 deletions
|
|
@ -12,7 +12,7 @@
|
||||||
:while ($GlobalFunctionsReady != true) do={ :delay 500ms; }
|
:while ($GlobalFunctionsReady != true) do={ :delay 500ms; }
|
||||||
|
|
||||||
:local ExitOK false;
|
:local ExitOK false;
|
||||||
:do {
|
:onerror Err {
|
||||||
:local ScriptName [ :jobname ];
|
:local ScriptName [ :jobname ];
|
||||||
|
|
||||||
:global NetwatchNotify;
|
:global NetwatchNotify;
|
||||||
|
|
@ -224,6 +224,6 @@
|
||||||
"since"=($Metric->"since") };
|
"since"=($Metric->"since") };
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} on-error={
|
} do={
|
||||||
:global ExitError; $ExitError $ExitOK [ :jobname ];
|
:global ExitError; $ExitError $ExitOK [ :jobname ] $Err;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue