bug 1523104: remote: clarify error message when unable to start HTTPD; r=ochameau
authorAndreas Tolfsen <ato@sny.no>
Thu, 07 Mar 2019 22:14:15 +0000
changeset 524130 1f861b702507b3ab008153021e6e0f2e56e1d3f5
parent 524129 4696a88c52741e6e4bc141255e80e2f64dfc0743
child 524131 c750fecfdf21d769179e756ca79a4af4521ca544
push id2032
push userffxbld-merge
push dateMon, 13 May 2019 09:36:57 +0000
treeherdermozilla-release@455c1065dcbe [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersochameau
bugs1523104
milestone67.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
bug 1523104: remote: clarify error message when unable to start HTTPD; r=ochameau
remote/RemoteAgent.js
--- a/remote/RemoteAgent.js
+++ b/remote/RemoteAgent.js
@@ -75,17 +75,17 @@ class ParentRemoteAgent {
     const protocol = new ProtocolHandler();
     targetList.register(this.server);
     protocol.register(this.server);
 
     try {
       this.server._start(port, host);
       log.info(`Remote debugging agent listening on ${this.scheme}://${this.host}:${this.port}/`);
     } catch (e) {
-      throw new Error(`Unable to start agent on ${port}: ${e.message}`, e);
+      throw new Error(`Unable to start remote agent: ${e.message}`, e);
     }
 
     Preferences.set(RecommendedPreferences);
   }
 
   async close() {
     if (this.listening) {
       try {