From bb9a4e6ecf25c63fae23d67281925215b67019eb Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 26 Feb 2020 11:49:11 +0100 Subject: sms-forward: use $LogAndError --- sms-forward | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sms-forward b/sms-forward index 35adba1..8907d19 100644 --- a/sms-forward +++ b/sms-forward @@ -8,11 +8,11 @@ :global SendNotification; :global MailServerIsUp; +:global LogAndError; # check mail server :if ($MailServerIsUp = false) do={ - :log warning "Mail server is not up."; - :error "Warning: See log for details."; + $LogAndError "Mail server is not up."; } :local Settings [ / tool sms get ]; -- cgit v1.2.3-70-g09d2