Unverified Commit 238202ec authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Make missing param error message more specific (#10433)

parent a4c507d5
......@@ -586,7 +586,7 @@ export async function isPageStatic(
throw new Error(
`A required parameter (${validParamKey}) was not provided as ${
repeat ? 'an array' : 'a string'
}.`
} in unstable_getStaticPaths for ${page}`
)
}
......
......@@ -11,7 +11,7 @@ describe('Invalid Prerender Catchall Params', () => {
const out = await nextBuild(appDir, [], { stderr: true })
expect(out.stderr).toMatch(`Build error occurred`)
expect(out.stderr).toMatch(
'A required parameter (slug) was not provided as an array'
'A required parameter (slug) was not provided as an array in unstable_getStaticPaths for /[...slug]'
)
})
})
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment