global-functions: $ScriptInstallUpdate: add error handling for changelog

This commit is contained in:
Christian Hesse 2021-07-09 22:04:15 +02:00
parent 574c50908b
commit d1ef710093

View file

@ -840,7 +840,11 @@
:if ([ :len $ChangeLogCode ] > 0) do={
:if ([ $ValidateSyntax $ChangeLogCode ] = true) do={
[ :parse $ChangeLogCode ];
:do {
[ :parse $ChangeLogCode ];
} on-error={
$LogPrintExit2 warning $0 ("The changelog failed to run!") false;
}
} else={
$LogPrintExit2 warning $0 ("The changelog failed syntax validation!") false;
}