mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-12-17 07:19:30 +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={
|
: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