mod/notification-ntfy: $FlushNtfyQueue: use $ExitError to indicate unintentional error

This commit is contained in:
Christian Hesse 2024-12-09 08:57:01 +01:00
parent de9dee83be
commit aac723e2a1

View file

@ -15,7 +15,7 @@
:global SendNtfy2;
# flush ntfy queue
:set FlushNtfyQueue do={
:set FlushNtfyQueue do={ :do {
:global NtfyQueue;
:global NtfyMessageIDs;
@ -52,7 +52,9 @@
/system/scheduler/remove [ find where name="_FlushNtfyQueue" ];
:set NtfyQueue;
}
}
} on-error={
:global ExitError; $ExitError false $0;
} }
# send notification via ntfy - expects one array argument
:set ($NotificationFunctions->"ntfy") do={