mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
sms-action: use $LogAndError
This commit is contained in:
parent
f1ab717ae5
commit
7ec411c542
1 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue