mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-03 06:34:27 +02:00
mod/notification-email: $SendEMail: use $ExitError to indicate unintentional error
This commit is contained in:
parent
5450618723
commit
1927dc505a
1 changed files with 4 additions and 2 deletions
|
@ -226,11 +226,13 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
# send notification via e-mail - expects at least two string arguments
|
# send notification via e-mail - expects at least two string arguments
|
||||||
:set SendEMail do={
|
:set SendEMail do={ :do {
|
||||||
:global SendEMail2;
|
:global SendEMail2;
|
||||||
|
|
||||||
$SendEMail2 ({ origin=$0; subject=$1; message=$2; link=$3 });
|
$SendEMail2 ({ origin=$0; subject=$1; message=$2; link=$3 });
|
||||||
}
|
} on-error={
|
||||||
|
:global ExitError; $ExitError false $0;
|
||||||
|
} }
|
||||||
|
|
||||||
# send notification via e-mail - expects one array argument
|
# send notification via e-mail - expects one array argument
|
||||||
:set SendEMail2 do={
|
:set SendEMail2 do={
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue