aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2022-01-20 22:11:30 +0100
committerGravatar Christian Hesse <mail@eworm.de>2022-01-20 22:18:07 +0100
commit0a9d0473f37b0091ff115ac7d47d93a521c37c7a (patch)
treefb681d75600d45a08d1e467eed8cbf43f588c69d
parent9024e20c0b576d7d22c28ead3c6461e228bfda49 (diff)
global-functions: $ScriptInstallUpdate: quote names in log output
(cherry picked from commit 5e32105e7ea4bd357f9826d1ca24ca6e2c455bdc)
-rw-r--r--global-functions18
1 files changed, 9 insertions, 9 deletions
diff --git a/global-functions b/global-functions
index fc70cc2..70f1077 100644
--- a/global-functions
+++ b/global-functions
@@ -723,8 +723,8 @@
:foreach Scheduler in=[ / system scheduler find where on-event~("\\b" . $ScriptVal->"name" . "\\b") ] do={
:local SchedulerVal [ / system scheduler get $Scheduler ];
:if ($ScriptVal->"policy" != $SchedulerVal->"policy") do={
- $LogPrintExit2 warning $0 ("Policies differ for script " . $ScriptVal->"name" . \
- " and its scheduler " . $SchedulerVal->"name" . "!") false;
+ $LogPrintExit2 warning $0 ("Policies differ for script '" . $ScriptVal->"name" . \
+ "' and its scheduler '" . $SchedulerVal->"name" . "'!") false;
}
}
@@ -744,7 +744,7 @@
:set SourceNew ($Result->"data");
}
} on-error={
- $LogPrintExit2 warning $0 ("Failed fetching " . $ScriptVal->"name") false;
+ $LogPrintExit2 warning $0 ("Failed fetching script '" . $ScriptVal->"name" . "'!") false;
}
}
}
@@ -765,18 +765,18 @@
:set ReloadGlobalFunctions true;
}
} else={
- $LogPrintExit2 warning $0 ("Syntax validation for script " . $ScriptVal->"name" . \
- " failed! Ignoring!") false;
+ $LogPrintExit2 warning $0 ("Syntax validation for script '" . $ScriptVal->"name" . \
+ "' failed! Ignoring!") false;
}
} else={
- $LogPrintExit2 warning $0 ("Looks like new script " . $ScriptVal->"name" . \
- " is not valid (missing shebang). Ignoring!") false;
+ $LogPrintExit2 warning $0 ("Looks like new script '" . $ScriptVal->"name" . \
+ "' is not valid (missing shebang). Ignoring!") false;
}
} else={
- $LogPrintExit2 debug $0 ("Script " . $ScriptVal->"name" . " did not change.") false;
+ $LogPrintExit2 debug $0 ("Script '" . $ScriptVal->"name" . "' did not change.") false;
}
} else={
- $LogPrintExit2 debug $0 ("No update for script " . $ScriptVal->"name" . ".") false;
+ $LogPrintExit2 debug $0 ("No update for script '" . $ScriptVal->"name" . "'.") false;
}
}