})
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 })
})
process.on('uncaughtException', function (e) {
- ipc.of[nodeKey].emit(processKey + '.exception', { exception: e })
+ ipc.of[nodeKey].emit(processKey + '.exception', { exception: e.toString() })
})
}