ActivityPub-federated video streaming platform using P2P directly in your web browser
Fix exception log of the webtorrent process
Chocobozzz233d12d8b191
diff --git a/server/lib/webtorrent.js b/server/lib/webtorrent.jsindex 455b086a35..e2e2586f9f 100644--- a/server/lib/webtorrent.js+++ b/server/lib/webtorrent.js@@ -53,7 +53,7 @@ function create (options, callback) {})ipc.server.on(processKey + '.exception', function (data) {- throw new Error('Received exception error from webtorrent process.' + data.exception)+ throw new Error('Received exception error from webtorrent process : ' + data.exception)})const webtorrent_process = spawn(pathUtils.join(__dirname, 'webtorrentProcess.js'), host, port, { detached: true })diff --git a/server/lib/webtorrentProcess.js b/server/lib/webtorrentProcess.jsindex c68e97ee49..7889e7128f 100644--- a/server/lib/webtorrentProcess.js+++ b/server/lib/webtorrentProcess.js@@ -83,7 +83,7 @@ function webtorrent (args) {})process.on('uncaughtException', function (e) {- ipc.of[nodeKey].emit(processKey + '.exception', { exception: e })+ ipc.of[nodeKey].emit(processKey + '.exception', { exception: e.toString() })})}