Unverified Commit 0b36a526 authored by Hannes Bornö's avatar Hannes Bornö Committed by GitHub

Fix capitalization in formatted server errors (#44798)

parent 2b7e32c3
......@@ -30,7 +30,7 @@ export function formatServerError(error: Error): void {
error,
`${error.message}
This might be caused by a React Class component being rendered in a server component, React Class components only works in Client Components. Read more: https://nextjs.org/docs/messages/class-component-in-server-component`
This might be caused by a React Class Component being rendered in a Server Component, React Class Components only works in Client Components. Read more: https://nextjs.org/docs/messages/class-component-in-server-component`
)
return
}
......
......@@ -331,13 +331,13 @@ createNextDescribe(
.waitForElementByCss('#nextjs__container_errors_desc')
.text()
).toContain(
'This might be caused by a React Class component being rendered in a server component'
'This might be caused by a React Class Component being rendered in a Server Component'
)
return 'success'
}, 'success')
expect(next.cliOutput).toContain(
'This might be caused by a React Class component being rendered in a server component'
'This might be caused by a React Class Component being rendered in a Server Component'
)
await cleanup()
......@@ -384,13 +384,13 @@ createNextDescribe(
.waitForElementByCss('#nextjs__container_errors_desc')
.text()
).toContain(
'This might be caused by a React Class component being rendered in a server component'
'This might be caused by a React Class Component being rendered in a Server Component'
)
return 'success'
}, 'success')
expect(next.cliOutput).toContain(
'This might be caused by a React Class component being rendered in a server component'
'This might be caused by a React Class Component being rendered in a Server Component'
)
await cleanup()
......@@ -437,13 +437,13 @@ createNextDescribe(
.waitForElementByCss('#nextjs__container_errors_desc')
.text()
).toContain(
'This might be caused by a React Class component being rendered in a server component'
'This might be caused by a React Class Component being rendered in a Server Component'
)
return 'success'
}, 'success')
expect(next.cliOutput).toContain(
'This might be caused by a React Class component being rendered in a server component'
'This might be caused by a React Class Component being rendered in a Server Component'
)
await cleanup()
......
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