diff options
-rw-r--r-- | global-functions | 6 |
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; |