diff options
author | Christian Hesse <mail@eworm.de> | 2024-12-09 11:10:24 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2024-12-09 11:49:50 +0100 |
commit | e76ae11b029169e971f7313b17d5c43589fa8170 (patch) | |
tree | 129fd5567285542d62096f8f15994bb0f18dbe63 | |
parent | aac723e2a1eede3649c5f3b4bbe67af0e951063a (diff) |
mod/notification-ntfy: $SendNtfy: use $ExitError to indicate unintentional error
-rw-r--r-- | mod/notification-ntfy.rsc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mod/notification-ntfy.rsc b/mod/notification-ntfy.rsc index 5fdeedf..7e0234b 100644 --- a/mod/notification-ntfy.rsc +++ b/mod/notification-ntfy.rsc @@ -134,11 +134,13 @@ } # send notification via ntfy - expects at least two string arguments -:set SendNtfy do={ +:set SendNtfy do={ :do { :global SendNtfy2; $SendNtfy2 ({ origin=$0; subject=$1; message=$2; link=$3; silent=$4 }); -} +} on-error={ + :global ExitError; $ExitError false $0; +} } # send notification via ntfy - expects one array argument :set SendNtfy2 do={ |