From 933db2ddc89b99c2d54a26fa063068a01fc1c241 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Fri, 5 Jul 2019 23:33:45 +0200 Subject: sms-action: give hint about mis-usage --- sms-action | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sms-action') 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 ]; -- cgit v1.2.3-70-g09d2