mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2026-03-05 05:29:37 +00:00
global-functions: $ValidateSyntax: add debug output
This commit is contained in:
parent
66a6dbb5b6
commit
35c20b85f5
1 changed files with 3 additions and 0 deletions
|
|
@ -1655,9 +1655,12 @@
|
|||
:set ValidateSyntax do={
|
||||
:local Code [ :tostr $1 ];
|
||||
|
||||
:global LogPrint;
|
||||
|
||||
:onerror Err {
|
||||
[ :parse (":local Validate do={\n" . $Code . "\n}") ];
|
||||
} do={
|
||||
$LogPrint debug $0 ("Valdation failed: " . $Err);
|
||||
:return false;
|
||||
}
|
||||
:return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue