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 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 ];