diff options
author | Christian Hesse <mail@eworm.de> | 2024-12-09 11:10:43 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2024-12-09 11:49:50 +0100 |
commit | 4968b79fc1142c9bfdbfe93c8f917cfdd7f51790 (patch) | |
tree | aec8969aaf88e7b178aa46b59967c870cec01ffb | |
parent | e89867be1533cd561bf61b65f3019946e2ceeee1 (diff) |
mod/notification-telegram: $SendTelegram: use $ExitError to indicate unintentional error
-rw-r--r-- | mod/notification-telegram.rsc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mod/notification-telegram.rsc b/mod/notification-telegram.rsc index 993782d..7d75b8b 100644 --- a/mod/notification-telegram.rsc +++ b/mod/notification-telegram.rsc @@ -182,11 +182,13 @@ } # send notification via telegram - expects at least two string arguments -:set SendTelegram do={ +:set SendTelegram do={ :do { :global SendTelegram2; $SendTelegram2 ({ origin=$0; subject=$1; message=$2; link=$3; silent=$4 }); -} +} on-error={ + :global ExitError; $ExitError false $0; +} } # send notification via telegram - expects one array argument :set SendTelegram2 do={ |