aboutsummaryrefslogtreecommitdiffstats
path: root/sms-action
diff options
context:
space:
mode:
Diffstat (limited to 'sms-action')
-rw-r--r--sms-action5
1 files changed, 3 insertions, 2 deletions
diff --git a/sms-action b/sms-action
index 026bdc8..5eabdd5 100644
--- a/sms-action
+++ b/sms-action
@@ -6,11 +6,12 @@
:global SmsAction;
+:global LogAndError;
+
:local Action $action;
:if ([ :typeof $Action ] = "nothing") do={
- :log error "This script is supposed to run from SMS hook with action=...";
- :error "Error: See log for details.";
+ $LogAndError "This script is supposed to run from SMS hook with action=...";
}
:local Code ($SmsAction->$Action);