diff options
author | Christian Hesse <mail@eworm.de> | 2024-12-09 11:10:03 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2024-12-09 11:49:50 +0100 |
commit | de9dee83bea855a893594e0d58ca609872f75072 (patch) | |
tree | d30820325c8127178be527844f9c5ec5f3775172 | |
parent | 1994b23e462c02ee71d5cb9db21d0e6075010c3c (diff) |
mod/notification-matrix: $SendMatrix: use $ExitError to indicate unintentional error
-rw-r--r-- | mod/notification-matrix.rsc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mod/notification-matrix.rsc b/mod/notification-matrix.rsc index 751967c..14f369d 100644 --- a/mod/notification-matrix.rsc +++ b/mod/notification-matrix.rsc @@ -166,11 +166,13 @@ } # send notification via Matrix - expects at least two string arguments -:set SendMatrix do={ +:set SendMatrix do={ :do { :global SendMatrix2; $SendMatrix2 ({ origin=$0; subject=$1; message=$2; link=$3 }); -} +} on-error={ + :global ExitError; $ExitError false $0; +} } # send notification via Matrix - expects one array argument :set SendMatrix2 do={ |