fix(nitro): add error logging to initWorker(#2090)

This commit is contained in:
Kenneth 2021-11-22 18:24:46 -05:00 committed by GitHub
parent 5bc9012eff
commit 5fdefed39e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,6 +29,7 @@ function initWorker (filename): Promise<NitroWorker> {
}
})
worker.on('error', (err) => {
console.error('[worker]', err)
err.message = '[worker] ' + err.message
reject(err)
})