From 7ec411c542c399a8d5f5ddea0253cc068c16b600 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 24 Feb 2020 20:08:22 +0100 Subject: sms-action: use $LogAndError --- sms-action | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sms-action') 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); -- cgit v1.2.3-70-g09d2