mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-06-21 01:15:42 +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;
|
||||
}
|
||||
|
||||
[ :parse $Code ];
|
||||
:do {
|
||||
[ :parse $Code ];
|
||||
} on-error={
|
||||
$LogPrint warning $0 ("The code for " . $Count . " mode-button presses failed with runtime error!");
|
||||
}
|
||||
} else={
|
||||
$LogPrint warning $0 ("The code for " . $Count . " mode-button presses failed syntax validation!");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue