aboutsummaryrefslogtreecommitdiffstats
path: root/sms-action
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2020-02-24 20:08:22 +0100
committerGravatar Christian Hesse <mail@eworm.de>2020-02-26 11:51:49 +0100
commit7ec411c542c399a8d5f5ddea0253cc068c16b600 (patch)
tree037065510e305b537a07aa80caff667b3acd9e49 /sms-action
parentf1ab717ae5f1daf9e5296bc5308ce7b0708171b8 (diff)
sms-action: use $LogAndError
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);