mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-12-06 09:59:28 +00:00
global-functions: $SendNotification: use $ExitError to indicate unintentional error
This commit is contained in:
parent
8c5bd8f5e2
commit
5b9031ccca
1 changed files with 4 additions and 2 deletions
|
|
@ -1374,11 +1374,13 @@
|
|||
}
|
||||
|
||||
# send notification via NotificationFunctions - expects at least two string arguments
|
||||
:set SendNotification do={
|
||||
:set SendNotification do={ :do {
|
||||
:global SendNotification2;
|
||||
|
||||
$SendNotification2 ({ origin=$0; subject=$1; message=$2; link=$3; silent=$4 });
|
||||
}
|
||||
} on-error={
|
||||
:global ExitError; $ExitError false $0;
|
||||
} }
|
||||
|
||||
# send notification via NotificationFunctions - expects one array argument
|
||||
:set SendNotification2 do={
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue