[Top][All Lists]

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

[elpa] master 7dd85f5 122/272: counsel.el (counsel--async-sentinel): Rec

From: Oleh Krehel
Subject: [elpa] master 7dd85f5 122/272: counsel.el (counsel--async-sentinel): Recognize error codes other than 1
Date: Mon, 25 Apr 2016 10:13:20 +0000

branch: master
commit 7dd85f500fb30f09d57a65c3ae02dd752b083967
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    counsel.el (counsel--async-sentinel): Recognize error codes other than 1
    Fixes #394
 counsel.el |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/counsel.el b/counsel.el
index 57b7a33..53c3170 100644
--- a/counsel.el
+++ b/counsel.el
@@ -104,9 +104,9 @@ Or the time of the last minibuffer update.")
         (if (null ivy--all-candidates)
             (ivy--insert-minibuffer "")
-    (if (string= event "exited abnormally with code 1\n")
+    (if (string-match "exited abnormally with code \\([0-9]+\\)\n" event)
-          (setq ivy--all-candidates '("Error"))
+          (setq ivy--all-candidates (list (format "error code %s" 
(match-string 1 event))))
           (setq ivy--old-cands ivy--all-candidates)

reply via email to

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