Skip to content

Commit 1d9cce2

Browse files
committed
Further improve a confusing message
1 parent b429508 commit 1d9cce2

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

cider.el

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1358,11 +1358,10 @@ canceled the action, signal quit."
13581358
(equal host (plist-get ses-params :host))))))
13591359
(sesman-current-sessions 'CIDER '(project)))))
13601360
(when session
1361-
(unless (y-or-n-p
1362-
(concat
1363-
"A session with the same parameters already exists (" (car session) "). "
1364-
"You can connect a sibling REPL to it instead (recommended). "
1365-
"Please, confirm the creation a new session (typing \"no\" will re-use the exising session)."))
1361+
(when (y-or-n-p
1362+
(concat
1363+
"A session with the same connection parameters already exists (" (car session) "). "
1364+
"Do you want to connect a sibling REPL to it instead of creating a new session? "))
13661365
(let ((debug-on-quit nil))
13671366
(signal 'quit nil)))))
13681367
params)

0 commit comments

Comments
 (0)