Skip to content

Commit

Permalink
Fix error message typos (#38894)
Browse files Browse the repository at this point in the history
Removes unintended the unintended code below multiple strings
```html

  ', '
)}),
```
  • Loading branch information
theMosaad committed Jul 22, 2022
1 parent 4b6cb44 commit 11607b8
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions packages/next/server/config.ts
Expand Up @@ -372,9 +372,7 @@ function assignDefaults(userConfig: { [key: string]: any }) {
(!Number.isInteger(images.minimumCacheTTL) || images.minimumCacheTTL < 0)
) {
throw new Error(
`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`
`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`
)
}

Expand Down Expand Up @@ -409,9 +407,7 @@ function assignDefaults(userConfig: { [key: string]: any }) {
typeof images.dangerouslyAllowSVG !== 'boolean'
) {
throw new Error(
`Specified images.dangerouslyAllowSVG should be a boolean
', '
)}), received (${images.dangerouslyAllowSVG}).\nSee more info here: https://nextjs.org/docs/messages/invalid-images-config`
`Specified images.dangerouslyAllowSVG should be a boolean received (${images.dangerouslyAllowSVG}).\nSee more info here: https://nextjs.org/docs/messages/invalid-images-config`
)
}

Expand All @@ -420,9 +416,7 @@ function assignDefaults(userConfig: { [key: string]: any }) {
typeof images.contentSecurityPolicy !== 'string'
) {
throw new Error(
`Specified images.contentSecurityPolicy should be a string
', '
)}), received (${images.contentSecurityPolicy}).\nSee more info here: https://nextjs.org/docs/messages/invalid-images-config`
`Specified images.contentSecurityPolicy should be a string received (${images.contentSecurityPolicy}).\nSee more info here: https://nextjs.org/docs/messages/invalid-images-config`
)
}

Expand Down

0 comments on commit 11607b8

Please sign in to comment.