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