diff options
author | Christian Hesse <mail@eworm.de> | 2021-07-09 22:04:15 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2021-07-09 22:04:15 +0200 |
commit | d1ef710093eb6c747f8a54a0ec4355f5035aff4e (patch) | |
tree | 2b757f95a513f9ba4fdff6fd3ebc5810a5c93b0c | |
parent | 574c50908bcd6e68aa14b59d838865ac0d9ee98d (diff) |
global-functions: $ScriptInstallUpdate: add error handling for changelog
-rw-r--r-- | global-functions | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/global-functions b/global-functions index df2cc54..47d70f1 100644 --- a/global-functions +++ b/global-functions @@ -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; } |