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

--HG--
extra : rebase_source : 28937d94c8688c05887dcbf7dcf862e7bdc3a6c7
This commit is contained in:
Andreas Tolfsen 2017-03-28 16:48:20 +01:00
Родитель cc9e1bdd13
Коммит 272199f4fe
1 изменённых файлов: 0 добавлений и 3 удалений

Просмотреть файл

@ -297,9 +297,6 @@ MarionetteComponent.prototype.init = function () {
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;