Skip to content

Commit

Permalink
fix: transform error message add file info (#13687)
Browse files Browse the repository at this point in the history
  • Loading branch information
btea committed Jul 17, 2023
1 parent 2ad78aa commit 6dca41c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/vite/src/node/server/transformRequest.ts
Expand Up @@ -205,6 +205,9 @@ async function loadAndTransform(
debugLoad?.(`${timeFrom(loadStart)} [fs] ${prettyUrl}`)
} catch (e) {
if (e.code !== 'ENOENT') {
if (e.code === 'EISDIR') {
e.message = `${e.message} ${file}`
}
throw e
}
}
Expand Down

0 comments on commit 6dca41c

Please sign in to comment.