global-functions: $ValidateSyntax: add debug output

This commit is contained in:
Christian Hesse 2025-05-08 09:39:17 +02:00
parent 70fb34775f
commit 54bf9b0fe0

View file

@ -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;