diff options
author | Christian Hesse <mail@eworm.de> | 2024-12-09 11:06:38 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2024-12-09 11:49:50 +0100 |
commit | 5b9031ccca75e7e1ba8479af1ae180ae8422ac74 (patch) | |
tree | bed46b21d79ab7f4606d79e28ed5d8cabe83a3df /global-functions.rsc | |
parent | 8c5bd8f5e2a5943e720e6086c1aec74ddb81eaf1 (diff) |
global-functions: $SendNotification: use $ExitError to indicate unintentional error
Diffstat (limited to 'global-functions.rsc')
-rw-r--r-- | global-functions.rsc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/global-functions.rsc b/global-functions.rsc index 743c50e..625f8cd 100644 --- a/global-functions.rsc +++ b/global-functions.rsc @@ -1374,11 +1374,13 @@ } # send notification via NotificationFunctions - expects at least two string arguments -:set SendNotification do={ +:set SendNotification do={ :do { :global SendNotification2; $SendNotification2 ({ origin=$0; subject=$1; message=$2; link=$3; silent=$4 }); -} +} on-error={ + :global ExitError; $ExitError false $0; +} } # send notification via NotificationFunctions - expects one array argument :set SendNotification2 do={ |