diff options
author | Christian Hesse <mail@eworm.de> | 2021-01-03 21:21:17 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2021-01-03 21:37:48 +0100 |
commit | ab267d54b35d11fcadbb2b0e3fae7c2e7a61b2a6 (patch) | |
tree | 8bd633b8f6348dc9820db279cc684d87e718742f | |
parent | 156024ac2f210ef57c3b7905751829012afbc4ff (diff) |
global-functions: $ScriptInstallUpdate: log error on reloading global functions
-rw-r--r-- | global-functions | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/global-functions b/global-functions index d9d180a..6f4ffbb 100644 --- a/global-functions +++ b/global-functions @@ -632,7 +632,11 @@ } :if ($ScriptVal->"name" = "global-functions") do={ $LogPrintExit info ("Reloading global functions.") false; - / system script run global-functions; + :do { + / system script run global-functions; + } on-error={ + $LogPrintExit error ("Reloading global functions failed!") false; + } } } else={ $LogPrintExit debug ("Script " . $ScriptVal->"name" . " did not change.") false; |