From 156024ac2f210ef57c3b7905751829012afbc4ff Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Sun, 3 Jan 2021 21:20:04 +0100 Subject: global-functions: $ScriptInstallUpdate: log error on reloading global configuration --- global-functions | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'global-functions') 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; -- cgit v1.2.3-70-g09d2