diff options
author | Christian Hesse <mail@eworm.de> | 2020-02-24 20:08:22 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2020-02-26 11:51:49 +0100 |
commit | 7ec411c542c399a8d5f5ddea0253cc068c16b600 (patch) | |
tree | 037065510e305b537a07aa80caff667b3acd9e49 /sms-action | |
parent | f1ab717ae5f1daf9e5296bc5308ce7b0708171b8 (diff) |
sms-action: use $LogAndError
Diffstat (limited to 'sms-action')
-rw-r--r-- | sms-action | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -6,11 +6,12 @@ :global SmsAction; +:global LogAndError; + :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."; + $LogAndError "This script is supposed to run from SMS hook with action=..."; } :local Code ($SmsAction->$Action); |