diff options
author | Christian Hesse <mail@eworm.de> | 2019-07-05 23:33:45 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2019-07-05 23:33:45 +0200 |
commit | 933db2ddc89b99c2d54a26fa063068a01fc1c241 (patch) | |
tree | 9888b94900920ad4eccade7405ed7e5f885ec882 /sms-action | |
parent | 15beb9234793fd01752d060ad01cc363c9a744be (diff) |
sms-action: give hint about mis-usage
Diffstat (limited to 'sms-action')
-rw-r--r-- | sms-action | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 ]; |