aboutsummaryrefslogtreecommitdiffstats
path: root/global-functions
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2021-01-03 21:20:04 +0100
committerGravatar Christian Hesse <mail@eworm.de>2021-01-03 21:20:04 +0100
commit156024ac2f210ef57c3b7905751829012afbc4ff (patch)
tree4115aa34b25894d2f2bbd5243769b4e243cf4ba3 /global-functions
parent90672798e8d00a8bf73ee69215706107ec63f6c8 (diff)
global-functions: $ScriptInstallUpdate: log error on reloading global configuration
Diffstat (limited to 'global-functions')
-rw-r--r--global-functions6
1 files changed, 5 insertions, 1 deletions
diff --git a/global-functions b/global-functions
index 3cb8277..d9d180a 100644
--- a/global-functions
+++ b/global-functions
@@ -624,7 +624,11 @@
:if ($ScriptVal->"name" = "global-config" && \
[ :len [ / system script find where name="global-config-overlay" ] ] > 0) do={
$LogPrintExit info ("Reloading global configuration and overlay.") false;
- / system script { run global-config; run global-config-overlay; }
+ :do {
+ / system script { run global-config; run global-config-overlay; }
+ } on-error={
+ $LogPrintExit error ("Reloading global configuration and overlay failed! Syntax error?") false;
+ }
}
:if ($ScriptVal->"name" = "global-functions") do={
$LogPrintExit info ("Reloading global functions.") false;