Skip to content

Commit

Permalink
fix: show error message above the stack when HMR overlay is disabled (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
fwouts authored Jun 6, 2021
1 parent 0430127 commit 6b4c355
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/vite/src/client/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,9 @@ async function handleMessage(payload: HMRPayload) {
if (enableOverlay) {
createErrorOverlay(err)
} else {
console.error(`[vite] Internal Server Error\n${err.stack}`)
console.error(
`[vite] Internal Server Error\n${err.message}\n${err.stack}`
)
}
break
}
Expand Down

0 comments on commit 6b4c355

Please sign in to comment.