1
0
mirror of https://github.com/eworm-de/routeros-scripts.git synced 2024-05-11 05:55:19 +00:00

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