diff options
-rw-r--r-- | server/lib/webtorrent.js | 2 | ||||
-rw-r--r-- | server/lib/webtorrentProcess.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/server/lib/webtorrent.js b/server/lib/webtorrent.js index 455b086a3..e2e2586f9 100644 --- a/server/lib/webtorrent.js +++ b/server/lib/webtorrent.js | |||
@@ -53,7 +53,7 @@ function create (options, callback) { | |||
53 | }) | 53 | }) |
54 | 54 | ||
55 | ipc.server.on(processKey + '.exception', function (data) { | 55 | ipc.server.on(processKey + '.exception', function (data) { |
56 | throw new Error('Received exception error from webtorrent process.' + data.exception) | 56 | throw new Error('Received exception error from webtorrent process : ' + data.exception) |
57 | }) | 57 | }) |
58 | 58 | ||
59 | const webtorrent_process = spawn(pathUtils.join(__dirname, 'webtorrentProcess.js'), host, port, { detached: true }) | 59 | const webtorrent_process = spawn(pathUtils.join(__dirname, 'webtorrentProcess.js'), host, port, { detached: true }) |
diff --git a/server/lib/webtorrentProcess.js b/server/lib/webtorrentProcess.js index c68e97ee4..7889e7128 100644 --- a/server/lib/webtorrentProcess.js +++ b/server/lib/webtorrentProcess.js | |||
@@ -83,7 +83,7 @@ function webtorrent (args) { | |||
83 | }) | 83 | }) |
84 | 84 | ||
85 | process.on('uncaughtException', function (e) { | 85 | process.on('uncaughtException', function (e) { |
86 | ipc.of[nodeKey].emit(processKey + '.exception', { exception: e }) | 86 | ipc.of[nodeKey].emit(processKey + '.exception', { exception: e.toString() }) |
87 | }) | 87 | }) |
88 | } | 88 | } |
89 | 89 | ||