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:13:56 +0100
commit5e32105e7ea4bd357f9826d1ca24ca6e2c455bdc (patch)
tree0fb946e268091359926fceb0af8a87a7f9a7a821
parentb4a5d824a268fae9f06ccf61fff4f67c760773ed (diff)
global-functions: $ScriptInstallUpdate: quote names in log output
-rw-r--r--global-functions18
1 files changed, 9 insertions, 9 deletions
diff --git a/global-functions b/global-functions
index 16704c6..a9b409b 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;
}
}