Skip to content

Commit

Permalink
Solve merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
timneutkens committed May 1, 2022
1 parent 7784d9c commit 3a5ab1e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/next/shared/lib/page-path/normalize-page-path.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { ensureLeadingSlash } from './ensure-leading-slash'
import { isDynamicRoute } from '../router/utils'
import { posix } from '../isomorphic/path'
import { NormalizeError } from '../utils'

/**
* Takes a page and transforms it into its file counterpart ensuring that the
Expand All @@ -22,7 +23,7 @@ export function normalizePagePath(page: string): string {

const resolvedPage = posix.normalize(normalized)
if (resolvedPage !== normalized) {
throw new Error(
throw new NormalizeError(
`Requested and resolved page mismatch: ${normalized} ${resolvedPage}`
)
}
Expand Down

0 comments on commit 3a5ab1e

Please sign in to comment.