Unverified Commit 11607b8a authored by Mosaad's avatar Mosaad Committed by GitHub

Fix error message typos (#38894)

Removes unintended the unintended code below multiple strings
```html

  ', '
)}),
```
parent 4b6cb447
...@@ -372,9 +372,7 @@ function assignDefaults(userConfig: { [key: string]: any }) { ...@@ -372,9 +372,7 @@ function assignDefaults(userConfig: { [key: string]: any }) {
(!Number.isInteger(images.minimumCacheTTL) || images.minimumCacheTTL < 0) (!Number.isInteger(images.minimumCacheTTL) || images.minimumCacheTTL < 0)
) { ) {
throw new Error( throw new Error(
`Specified images.minimumCacheTTL should be an integer 0 or more `Specified images.minimumCacheTTL should be an integer 0 or more received (${images.minimumCacheTTL}).\nSee more info here: https://nextjs.org/docs/messages/invalid-images-config`
', '
)}), received (${images.minimumCacheTTL}).\nSee more info here: https://nextjs.org/docs/messages/invalid-images-config`
) )
} }
...@@ -409,9 +407,7 @@ function assignDefaults(userConfig: { [key: string]: any }) { ...@@ -409,9 +407,7 @@ function assignDefaults(userConfig: { [key: string]: any }) {
typeof images.dangerouslyAllowSVG !== 'boolean' typeof images.dangerouslyAllowSVG !== 'boolean'
) { ) {
throw new Error( throw new Error(
`Specified images.dangerouslyAllowSVG should be a boolean `Specified images.dangerouslyAllowSVG should be a boolean received (${images.dangerouslyAllowSVG}).\nSee more info here: https://nextjs.org/docs/messages/invalid-images-config`
', '
)}), received (${images.dangerouslyAllowSVG}).\nSee more info here: https://nextjs.org/docs/messages/invalid-images-config`
) )
} }
...@@ -420,9 +416,7 @@ function assignDefaults(userConfig: { [key: string]: any }) { ...@@ -420,9 +416,7 @@ function assignDefaults(userConfig: { [key: string]: any }) {
typeof images.contentSecurityPolicy !== 'string' typeof images.contentSecurityPolicy !== 'string'
) { ) {
throw new Error( throw new Error(
`Specified images.contentSecurityPolicy should be a string `Specified images.contentSecurityPolicy should be a string received (${images.contentSecurityPolicy}).\nSee more info here: https://nextjs.org/docs/messages/invalid-images-config`
', '
)}), received (${images.contentSecurityPolicy}).\nSee more info here: https://nextjs.org/docs/messages/invalid-images-config`
) )
} }
......
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