mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-06-23 01:58:40 +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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
:do {
|
||||||
[ :parse $Code ];
|
[ :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