sms-action: give hint about mis-usage

This commit is contained in:
Christian Hesse 2019-07-05 23:33:45 +02:00
parent 15beb92347
commit 933db2ddc8

View file

@ -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 ];