mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-07-25 13:24:30 +02:00
mode-button: catch runtime errors in executed code
This commit is contained in:
parent
1beda3aa7c
commit
53b6f7720e
1 changed files with 5 additions and 1 deletions
|
@ -64,7 +64,11 @@
|
||||||
:delay 200ms;
|
:delay 200ms;
|
||||||
}
|
}
|
||||||
|
|
||||||
[ :parse $Code ];
|
:do {
|
||||||
|
[ :parse $Code ];
|
||||||
|
} on-error={
|
||||||
|
$LogPrint warning $0 ("The code for " . $Count . " mode-button presses failed with runtime error!");
|
||||||
|
}
|
||||||
} else={
|
} else={
|
||||||
$LogPrint warning $0 ("The code for " . $Count . " mode-button presses failed syntax validation!");
|
$LogPrint warning $0 ("The code for " . $Count . " mode-button presses failed syntax validation!");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue