diff --git a/sms-action b/sms-action index 026bdc8..5eabdd5 100644 --- a/sms-action +++ b/sms-action @@ -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);