mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-06-21 01:25:52 +02:00
gps-track: use :onerror for outer block
This commit is contained in:
parent
0e93d8ca66
commit
d609da0041
1 changed files with 3 additions and 3 deletions
|
@ -13,7 +13,7 @@
|
|||
:while ($GlobalFunctionsReady != true) do={ :delay 500ms; }
|
||||
|
||||
:local ExitOK false;
|
||||
:do {
|
||||
:onerror Err {
|
||||
:local ScriptName [ :jobname ];
|
||||
|
||||
:global GpsTrackUrl;
|
||||
|
@ -48,6 +48,6 @@
|
|||
} else={
|
||||
$LogPrint debug $ScriptName ("GPS data not valid.");
|
||||
}
|
||||
} 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