Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
238202ec
Unverified
Commit
238202ec
authored
Feb 05, 2020
by
JJ Kasper
Committed by
GitHub
Feb 05, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make missing param error message more specific (#10433)
parent
a4c507d5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
utils.ts
packages/next/build/utils.ts
+1
-1
index.test.js
...tion/prerender-invalid-catchall-params/test/index.test.js
+1
-1
No files found.
packages/next/build/utils.ts
View file @
238202ec
...
@@ -586,7 +586,7 @@ export async function isPageStatic(
...
@@ -586,7 +586,7 @@ export async function isPageStatic(
throw
new
Error
(
throw
new
Error
(
`A required parameter (
${
validParamKey
}
) was not provided as
${
`A required parameter (
${
validParamKey
}
) was not provided as
${
repeat
?
'an array'
:
'a string'
repeat
?
'an array'
:
'a string'
}
.
`
}
in unstable_getStaticPaths for
${
page
}
`
)
)
}
}
...
...
test/integration/prerender-invalid-catchall-params/test/index.test.js
View file @
238202ec
...
@@ -11,7 +11,7 @@ describe('Invalid Prerender Catchall Params', () => {
...
@@ -11,7 +11,7 @@ describe('Invalid Prerender Catchall Params', () => {
const
out
=
await
nextBuild
(
appDir
,
[],
{
stderr
:
true
})
const
out
=
await
nextBuild
(
appDir
,
[],
{
stderr
:
true
})
expect
(
out
.
stderr
).
toMatch
(
`Build error occurred`
)
expect
(
out
.
stderr
).
toMatch
(
`Build error occurred`
)
expect
(
out
.
stderr
).
toMatch
(
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]
'
)
)
})
})
})
})
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment