aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 ];