mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-08-14 23:12:21 +02: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={
|
:set ValidateSyntax do={
|
||||||
:local Code [ :tostr $1 ];
|
:local Code [ :tostr $1 ];
|
||||||
|
|
||||||
:do {
|
:onerror Err {
|
||||||
[ :parse (":local Validate do={\n" . $Code . "\n}") ];
|
[ :parse (":local Validate do={\n" . $Code . "\n}") ];
|
||||||
} on-error={
|
} do={
|
||||||
:return false;
|
:return false;
|
||||||
}
|
}
|
||||||
:return true;
|
:return true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue