sms-action: use $LogAndError

This commit is contained in:
Christian Hesse 2020-02-24 20:08:22 +01:00
parent f1ab717ae5
commit 7ec411c542

View file

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