Bug 1350887 - Propagate errors thrown when starting server.TCPListener; r=whimboo
Errors thrown are printed to console and there is no point in having a
custom catch to print it.
This also makes it possible to start Marionette programmatically without
worrying about disappearing errors.
MozReview-Commit-ID: GGhyCyYqJg
--- a/testing/marionette/components/marionette.js
+++ b/testing/marionette/components/marionette.js
@@ -292,19 +292,16 @@ MarionetteComponent.prototype.init = fun
}
let s;
try {
Cu.import("chrome://marionette/content/server.js");
s = new server.TCPListener(prefs.port, prefs.forceLocal);
s.start();
this.logger.info(`Listening on port ${s.port}`);
- } catch (e) {
- this.logger.error(`Error on starting server: ${e}`);
- dump(`${e.toString()}\n${e.stack}\n`);
} finally {
if (s) {
this.server = s;
this.running = true;
}
}
};