summaryrefslogtreecommitdiff
path: root/cider-connection.el
diff options
context:
space:
mode:
authorVitalie Spinu <spinuvit@gmail.com>2018-07-01 01:02:16 +0200
committerBozhidar Batsov <bozhidar.batsov@gmail.com>2018-07-01 11:35:09 +0200
commit80e606047b52e25bdec0039dadc66760a2e81bd7 (patch)
tree8c515f48ecdc40d167f2c971b873e97a340d0750 /cider-connection.el
parent423ba43223d590c16fea732ebaeec82c39bb62cb (diff)
Ensure existence of a REPL in `cider-map-repls`
Diffstat (limited to 'cider-connection.el')
-rw-r--r--cider-connection.el5
1 files changed, 1 insertions, 4 deletions
diff --git a/cider-connection.el b/cider-connection.el
index e8f39bc3..47d3984a 100644
--- a/cider-connection.el
+++ b/cider-connection.el
@@ -575,10 +575,7 @@ Error is signaled if no REPL buffer of specified type exists."
((:clj :clj-strict) "clj")
((:cljs :cljs-strict) "cljs")
(:auto cur-type)))
- (repls (cider-repls type)))
- (unless repls
- ;; cannot happen with "multi"
- (user-error "No %s REPLs found. Have you linked a session?" type))
+ (repls (cider-repls type 'ensure)))
(mapcar function repls))))
;; REPLs double as connections in CIDER, so it's useful to be able to refer to