Skip to content

Commit

Permalink
[#1945] Mention host and port in connection success/failure messages
Browse files Browse the repository at this point in the history
This should make it easier for people to figure out what's going on.
  • Loading branch information
bbatsov committed Mar 4, 2017
1 parent c529eca commit 0fb25a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nrepl-client.el
Original file line number Diff line number Diff line change
Expand Up @@ -545,8 +545,8 @@ If NO-ERROR is non-nil, show messages instead of throwing an error."
(condition-case nil
(prog1 (list :proc (open-network-stream "nrepl-connection" nil host port)
:host host :port port)
(message "[nREPL] Direct connection established"))
(error (let ((msg "[nREPL] Direct connection failed"))
(message "[nREPL] Direct connection to %s:%s established" host port))
(error (let ((msg "[nREPL] Direct connection to %s:%s failed" host port))
(if no-error
(message msg)
(error msg))
Expand Down

0 comments on commit 0fb25a8

Please sign in to comment.