mirror of https://github.com/Chocobozzz/PeerTube
Fix exception log of the webtorrent process
parent
8c9c1942f6
commit
233d12d8b1
|
@ -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 })
|
||||
|
|
|
@ -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() })
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue