[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/dtache 74aefe7262 2/3: Fix error in notifications-messa
From: |
ELPA Syncer |
Subject: |
[elpa] externals/dtache 74aefe7262 2/3: Fix error in notifications-message function |
Date: |
Sat, 5 Feb 2022 09:57:27 -0500 (EST) |
branch: externals/dtache
commit 74aefe72621df1b4e82c8997e1a04026805af14b
Author: Niklas Eklund <niklas.eklund@posteo.net>
Commit: Niklas Eklund <niklas.eklund@posteo.net>
Fix error in notifications-message function
This patch makes sure the function behaves correctly even if
dtache-env is set to nil.
---
dtache.el | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/dtache.el b/dtache.el
index 86fc7086e4..ccd37918c2 100644
--- a/dtache.el
+++ b/dtache.el
@@ -699,11 +699,13 @@ This function uses the `notifications' library."
(notifications-notify
:title (pcase status
('success (format "Dtache finished [%s]" host))
- ('failure (format "Dtache failed [%s]" host)))
+ ('failure (format "Dtache failed [%s]" host))
+ ('unknown (format "Dtache finished [%s]" host)))
:body (dtache--session-command session)
:urgency (pcase status
('success 'normal)
- ('failure 'critical)))))
+ ('failure 'critical)
+ ('unknown 'normal)))))
(defun dtache-view-dwim (session)
"View SESSION in a do what I mean fashion."