branch: master commit 7dd85f500fb30f09d57a65c3ae02dd752b083967 Author: Oleh Krehel <ohwoeo...@gmail.com> Commit: Oleh Krehel <ohwoeo...@gmail.com>
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 "") (ivy--exhibit))) - (if (string= event "exited abnormally with code 1\n") + (if (string-match "exited abnormally with code \\([0-9]+\\)\n" event) (progn - (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) (ivy--exhibit)))))