Skip to content

Commit

Permalink
chore: include resolved id in load fail error message
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Jan 8, 2021
1 parent 0356c3c commit 5d00cee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/vite/src/node/server/transformRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ export async function transformRequest(
}
}
if (code == null) {
throw new Error(`Failed to load url ${url}. Does the file exist?`)
throw new Error(
`Failed to load url ${url} (resolved id: ${id}). Does the file exist?`
)
}

// ensure module in graph after successful load
Expand Down

0 comments on commit 5d00cee

Please sign in to comment.