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

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

[elpa] master 26fd0de 062/215: Show failure in message and in cmdbuf whe


From: Rocky Bernstein
Subject: [elpa] master 26fd0de 062/215: Show failure in message and in cmdbuf when we fail to invoke a debugger
Date: Sat, 30 Jul 2016 14:48:53 +0000 (UTC)

branch: master
commit 26fd0def9d45ab18bc756d86ed43ab224250711d
Author: rocky <address@hidden>
Commit: rocky <address@hidden>

    Show failure in message and in cmdbuf when we fail to invoke a debugger
---
 realgud/common/core.el |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/realgud/common/core.el b/realgud/common/core.el
index eb710c5..4f8f344 100644
--- a/realgud/common/core.el
+++ b/realgud/common/core.el
@@ -265,9 +265,13 @@ marginal icons is reset."
        (make-local-variable 'realgud-overlay-arrow2)
        (make-local-variable 'realgud-overlay-arrow3)
 
-       (condition-case nil
+       (condition-case failure
            (comint-exec cmdproc-buffer debugger-name program nil args)
-         (error cmdproc-buffer))
+         (error
+          (let ((text (format "%S\n" failure)))
+            (insert text)
+            (message text)(sit-for 2)
+            text)))
 
        (setq process (get-buffer-process cmdproc-buffer))
 



reply via email to

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