diff options
author | Christian Hesse <mail@eworm.de> | 2024-12-09 09:02:04 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2024-12-09 11:49:50 +0100 |
commit | 8c5bd8f5e2a5943e720e6086c1aec74ddb81eaf1 (patch) | |
tree | 7eb01d1e8ee9b00af48f2cd0f49bab7b699478b3 | |
parent | ff00c27f990b851b9d14f708aecae6087fedc011 (diff) |
global-functions: $ScriptInstallUpdate: use $ExitError to indicate unintentional error
-rw-r--r-- | global-functions.rsc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/global-functions.rsc b/global-functions.rsc index 6c74c2f..743c50e 100644 --- a/global-functions.rsc +++ b/global-functions.rsc @@ -1018,7 +1018,7 @@ } # install new scripts, update existing scripts -:set ScriptInstallUpdate do={ +:set ScriptInstallUpdate do={ :do { :local Scripts [ :toarray $1 ]; :local NewComment [ :tostr $2 ]; @@ -1237,7 +1237,9 @@ :set GlobalConfigChanges; :set GlobalConfigMigration; } -} +} on-error={ + :global ExitError; $ExitError false $0; +} } # lock script against multiple invocation :set ScriptLock do={ |