sms-forward: use $LogAndError

This commit is contained in:
Christian Hesse 2020-02-26 11:49:11 +01:00
parent 556fc2d0d3
commit bb9a4e6ecf

View file

@ -8,11 +8,11 @@
:global SendNotification; :global SendNotification;
:global MailServerIsUp; :global MailServerIsUp;
:global LogAndError;
# check mail server # check mail server
:if ($MailServerIsUp = false) do={ :if ($MailServerIsUp = false) do={
:log warning "Mail server is not up."; $LogAndError "Mail server is not up.";
:error "Warning: See log for details.";
} }
:local Settings [ / tool sms get ]; :local Settings [ / tool sms get ];