aboutsummaryrefslogtreecommitdiffstats
path: root/sms-action.rsc
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2024-03-08 17:32:12 +0100
committerGravatar Christian Hesse <mail@eworm.de>2024-03-12 20:37:57 +0100
commitba2df80f073caf6b426def177b217d1b37954d7f (patch)
tree5dadd74e56ded840e62e82127a9315c8769bfd83 /sms-action.rsc
parent19802c0b6977f9467fada4ace3cab017dd98964b (diff)
parent242ecef012f5208b6fa088a1222d0d5477e5b2ed (diff)
Merge branch 'LogPrint' into next
Diffstat (limited to 'sms-action.rsc')
-rw-r--r--sms-action.rsc7
1 files changed, 4 insertions, 3 deletions
diff --git a/sms-action.rsc b/sms-action.rsc
index 11d3523..4c37565 100644
--- a/sms-action.rsc
+++ b/sms-action.rsc
@@ -16,13 +16,14 @@
:global SmsAction;
- :global LogPrintExit2;
+ :global LogPrint;
:global ValidateSyntax;
:local Action $action;
:if ([ :typeof $Action ] = "nothing") do={
- $LogPrintExit2 error $ScriptName ("This script is supposed to run from SMS hook with action=...") true;
+ $LogPrint error $ScriptName ("This script is supposed to run from SMS hook with action=...");
+ :error false;
}
:local Code ($SmsAction->$Action);
@@ -31,6 +32,6 @@
:delay 1s;
[ :parse $Code ];
} else={
- $LogPrintExit2 warning $ScriptName ("The code for action '" . $Action . "' failed syntax validation!") false;
+ $LogPrint warning $ScriptName ("The code for action '" . $Action . "' failed syntax validation!");
}
} on-error={ }