mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-12-14 13:59:29 +00:00
global-functions: $ValidateSyntax: :do ... on-error=... -> :onerror ... do=...
This commit is contained in:
parent
12926b7c42
commit
f5c4378676
1 changed files with 2 additions and 2 deletions
|
|
@ -1652,9 +1652,9 @@
|
|||
:set ValidateSyntax do={
|
||||
:local Code [ :tostr $1 ];
|
||||
|
||||
:do {
|
||||
:onerror Err {
|
||||
[ :parse (":local Validate do={\n" . $Code . "\n}") ];
|
||||
} on-error={
|
||||
} do={
|
||||
:return false;
|
||||
}
|
||||
:return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue