global-functions: $ValidateSyntax: add debug output

This commit is contained in:
Christian Hesse 2025-05-08 09:39:17 +02:00
parent f5c4378676
commit 8b1b73c936

View file

@ -1652,9 +1652,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;