diff options
author | Christian Hesse <mail@eworm.de> | 2024-12-09 11:09:44 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2024-12-09 11:49:50 +0100 |
commit | 1927dc505a88ef5ecb86d1d925cf44a5225b4b7c (patch) | |
tree | 76bc1436ea8d4b380bf56dc6e01575d10138c202 | |
parent | 5450618723dabf9d42857047ea906c9fc87886dd (diff) |
mod/notification-email: $SendEMail: use $ExitError to indicate unintentional error
-rw-r--r-- | mod/notification-email.rsc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mod/notification-email.rsc b/mod/notification-email.rsc index ff4188c..e51779b 100644 --- a/mod/notification-email.rsc +++ b/mod/notification-email.rsc @@ -226,11 +226,13 @@ } # send notification via e-mail - expects at least two string arguments -:set SendEMail do={ +:set SendEMail do={ :do { :global SendEMail2; $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 :set SendEMail2 do={ |