Skip to content

Commit a270697

Browse files
ijjkstyfle
andauthored
Apply suggestions from code review
Co-authored-by: Steven <steven@ceriously.com>
1 parent 7721a3e commit a270697

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/next/lib/load-custom-routes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ function checkHeader(route: Header): string[] {
109109
if (!Array.isArray(route.headers)) {
110110
invalidParts.push('`headers` field must be an array')
111111
} else if (route.headers.length === 0) {
112-
invalidParts.push('`headers` field can not be empty')
112+
invalidParts.push('`headers` field cannot be empty')
113113
} else {
114114
for (const header of route.headers) {
115115
if (!header || typeof header !== 'object') {

test/integration/invalid-custom-routes/test/index.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const runTests = () => {
3838
const stderr = await getStderr()
3939

4040
expect(stderr).toContain(
41-
'`headers` field can not be empty for route {"source":"/:path*"'
41+
'`headers` field cannot be empty for route {"source":"/:path*"'
4242
)
4343
})
4444

0 commit comments

Comments
 (0)