summaryrefslogtreecommitdiff
path: root/nrepl-client.el
diff options
context:
space:
mode:
authorBozhidar Batsov <bozhidar@batsov.com>2015-11-14 11:04:22 +0200
committerBozhidar Batsov <bozhidar@batsov.com>2015-11-14 11:04:22 +0200
commit4bd8e85b699cae6ac1e0a0beb8b75332c9d38881 (patch)
treefd21f33c83362e937674948e97867b999cf4223a /nrepl-client.el
parentc49fc4ba2a7e6835126c9821a2e97eb309471623 (diff)
Switch to the connection (REPL) buffer after dumping a stacktrace in it
This makes it easier to see that something went wrong during sync evaluation. Ideally, we should replace this with our standard stacktrace rendering functionality.
Diffstat (limited to 'nrepl-client.el')
-rw-r--r--nrepl-client.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/nrepl-client.el b/nrepl-client.el
index aa14439b..d81e7de2 100644
--- a/nrepl-client.el
+++ b/nrepl-client.el
@@ -947,7 +947,10 @@ sign of user input, so as not to hang the interface."
(when-let ((ex (nrepl-dict-get response "ex"))
(err (nrepl-dict-get response "err")))
;; dump the stacktrace in the REPL
- (cider-repl-emit-interactive-stderr err))
+ ;; TODO: This has to be replaced with rendering of the
+ ;; standard stacktrace buffer
+ (cider-repl-emit-interactive-stderr err)
+ (switch-to-buffer-other-window connection))
(when-let ((id (nrepl-dict-get response "id")))
(with-current-buffer connection
(nrepl--mark-id-completed id)))