mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-18 17:35:57 +00:00
fix(nitro): add error logging to initWorker
(#2090)
This commit is contained in:
parent
5bc9012eff
commit
5fdefed39e
@ -29,6 +29,7 @@ function initWorker (filename): Promise<NitroWorker> {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
worker.on('error', (err) => {
|
worker.on('error', (err) => {
|
||||||
|
console.error('[worker]', err)
|
||||||
err.message = '[worker] ' + err.message
|
err.message = '[worker] ' + err.message
|
||||||
reject(err)
|
reject(err)
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user