diff options
author | Christian Hesse <mail@eworm.de> | 2024-12-09 08:57:20 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2024-12-09 11:49:50 +0100 |
commit | e89867be1533cd561bf61b65f3019946e2ceeee1 (patch) | |
tree | 967fbd4b05e1baa17659a63b159293e260e15991 /mod | |
parent | e76ae11b029169e971f7313b17d5c43589fa8170 (diff) |
mod/notification-telegram: $FlushTelegramQueue: use $ExitError to indicate unintentional error
Diffstat (limited to 'mod')
-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 671bd1c..993782d 100644 --- a/mod/notification-telegram.rsc +++ b/mod/notification-telegram.rsc @@ -15,7 +15,7 @@ :global SendTelegram2; # flush telegram queue -:set FlushTelegramQueue do={ +:set FlushTelegramQueue do={ :do { :global TelegramQueue; :global TelegramMessageIDs; @@ -56,7 +56,9 @@ /system/scheduler/remove [ find where name="_FlushTelegramQueue" ]; :set TelegramQueue; } -} +} on-error={ + :global ExitError; $ExitError false $0; +} } # send notification via telegram - expects one array argument :set ($NotificationFunctions->"telegram") do={ |