emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/detached 4a725e96fc 4/8: Make sure status deduction wor


From: ELPA Syncer
Subject: [elpa] externals/detached 4a725e96fc 4/8: Make sure status deduction works on no output
Date: Tue, 31 May 2022 10:57:32 -0400 (EDT)

branch: externals/detached
commit 4a725e96fc82a1d4ed66c9768eb8d7bd714bd869
Author: Niklas Eklund <niklas.eklund@posteo.net>
Commit: Niklas Eklund <niklas.eklund@posteo.net>

    Make sure status deduction works on no output
---
 detached.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/detached.el b/detached.el
index e0a8f820e1..c8cabfaf7f 100644
--- a/detached.el
+++ b/detached.el
@@ -708,7 +708,8 @@ If session is not valid trigger an automatic cleanup on 
SESSION's host."
            (goto-char (point-max))
            (thing-at-point 'line t)))
         (failure-message (rx "detached-exit-code: " (group (one-or-more 
digit)))))
-    (cond ((string-match failure-message detached-env-message)
+    (cond ((null detached-env-message) `(success . 0))
+          ((string-match failure-message detached-env-message)
            `(failure . ,(string-to-number (match-string 1 
detached-env-message))))
           (t `(success . 0)))))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]