From 0fb25a8b8ed04c536cb48a8b7c060ff5e4342a6a Mon Sep 17 00:00:00 2001 From: Bozhidar Batsov Date: Sat, 4 Mar 2017 10:12:41 +0200 Subject: [PATCH] [#1945] Mention host and port in connection success/failure messages This should make it easier for people to figure out what's going on. --- nrepl-client.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nrepl-client.el b/nrepl-client.el index b63f482ca..6a69e1093 100644 --- a/nrepl-client.el +++ b/nrepl-client.el @@ -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))