Skip to content

Commit 3eb6ffc

Browse files
committed
Improve the message displayed by cider-ensure-connected
1 parent 00cbbf6 commit 3eb6ffc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cider-client.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ A good alternative to the default is `cider-random-tip'."
6969
"Ensure there is a cider connection present.
7070
An error is signaled in the absence of a connection."
7171
(unless (cider-connected-p)
72-
(error "No active nREPL connections")))
72+
(user-error "`%s' needs an active nREPL connection" this-command)))
7373

7474
(defsubst cider--in-connection-buffer-p ()
7575
"Return non-nil if current buffer is connected to a server."

0 commit comments

Comments
 (0)