summaryrefslogtreecommitdiff
path: root/cider-classpath.el
diff options
context:
space:
mode:
authorBozhidar Batsov <bozhidar@batsov.com>2016-02-28 12:09:07 +0200
committerBozhidar Batsov <bozhidar@batsov.com>2016-02-28 12:09:07 +0200
commit6cbcf4eef48450c87669b2ed61e6d73ed6c510dd (patch)
tree5e530cb9dc574cc02eb114c19498ab69aa8122df /cider-classpath.el
parent83e15cb331f07c6223359417c5773560a3b3ab99 (diff)
Make sure cider-open-classpath-entry doesn't blow up in the absence of a
connection or the classpath op
Diffstat (limited to 'cider-classpath.el')
-rw-r--r--cider-classpath.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/cider-classpath.el b/cider-classpath.el
index 335edd53..2e73d011 100644
--- a/cider-classpath.el
+++ b/cider-classpath.el
@@ -100,6 +100,8 @@
(defun cider-open-classpath-entry ()
"Open a classpath entry."
(interactive)
+ (cider-ensure-connected)
+ (cider-ensure-op-supported "classpath")
(when-let ((entry (completing-read "Classpath entries: " (cider-sync-request:classpath))))
(find-file-other-window entry)))