Skip to content

Commit

Permalink
fix(nitro): add error logging to initWorker(#2090)
Browse files Browse the repository at this point in the history
  • Loading branch information
codebykenny authored Nov 22, 2021
1 parent 63e779b commit 9e004e1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/server/dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ function initWorker (filename): Promise<NitroWorker> {
}
})
worker.on('error', (err) => {
console.error('[worker]', err)
err.message = '[worker] ' + err.message
reject(err)
})
Expand Down

0 comments on commit 9e004e1

Please sign in to comment.