Skip to content

Commit

Permalink
improve error message from #53752
Browse files Browse the repository at this point in the history
  • Loading branch information
ztanner committed Aug 9, 2023
1 parent 8e0d108 commit ac4b240
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next/src/build/webpack/loaders/next-app-loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ const nextAppLoader: AppLoader = async function nextAppLoader() {
// if it's a valid parallel segment, the `children` property will be set appropriately
if (matched.children && matched.children !== rest[0]) {
throw new Error(
`/You cannot have two parallel pages that resolve to the same path. Please check ${appPath}.`
`You cannot have two parallel pages that resolve to the same path. Please check ${`${pathname}/${matched.children}/page`} and ${appPath}. Refer to the route group docs for more information: https://nextjs.org/docs/app/building-your-application/routing/route-groups`
)
}

Expand Down

0 comments on commit ac4b240

Please # to comment.