aboutsummaryrefslogtreecommitdiffstats
path: root/sms-action
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2019-07-05 23:33:45 +0200
committerGravatar Christian Hesse <mail@eworm.de>2019-07-05 23:33:45 +0200
commit933db2ddc89b99c2d54a26fa063068a01fc1c241 (patch)
tree9888b94900920ad4eccade7405ed7e5f885ec882 /sms-action
parent15beb9234793fd01752d060ad01cc363c9a744be (diff)
sms-action: give hint about mis-usage
Diffstat (limited to 'sms-action')
-rw-r--r--sms-action5
1 files changed, 5 insertions, 0 deletions
diff --git a/sms-action b/sms-action
index b651c57..0871ef1 100644
--- a/sms-action
+++ b/sms-action
@@ -8,6 +8,11 @@
: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.";
+}
+
:local Code ($SmsAction->$Action);
:local Parsed [ :parse $Code ];