Bug 959517 - Clarify connection error message, r=mdas, a=test-only
authorVikas Mishra <vikasmishra95@gmail.com>
Mon, 17 Mar 2014 22:19:35 +0530
changeset 192306 d573606a6463cccfab141ccda707f78bc700a63b
parent 192305 c062fecb069846c1f764e540f4f389573f9dd865
child 192307 d83e2e0f0cc382a6f67ba8e9274375a73e740467
push id474
push userasasaki@mozilla.com
push dateMon, 02 Jun 2014 21:01:02 +0000
treeherdermozilla-release@967f4cf1b31c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmdas, test-only
bugs959517
milestone30.0a2
Bug 959517 - Clarify connection error message, r=mdas, a=test-only
testing/marionette/client/marionette/runner/base.py
--- a/testing/marionette/client/marionette/runner/base.py
+++ b/testing/marionette/client/marionette/runner/base.py
@@ -649,17 +649,17 @@ class BaseMarionetteTestRunner(object):
         elif self.address:
             host, port = self.address.split(':')
             try:
                 #establish a socket connection so we can vertify the data come back
                 connection = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
                 connection.connect((host,int(port)))
                 connection.close()
             except Exception, e:
-                raise Exception("Could not connect to given marionette host:port: %s" % e)
+                raise Exception("Connection attempt to %s:%s failed with error: %s" %(host,port,e))
             if self.emulator:
                 self.marionette = Marionette.getMarionetteOrExit(
                                              host=host, port=int(port),
                                              connectToRunningEmulator=True,
                                              homedir=self.homedir,
                                              baseurl=self.baseurl,
                                              logcat_dir=self.logcat_dir,
                                              gecko_path=self.gecko_path,