From 11607b8a6cb84fda61ba29bc08902f4e073057a1 Mon Sep 17 00:00:00 2001 From: Mosaad <48773133+theMosaad@users.noreply.github.com> Date: Fri, 22 Jul 2022 03:58:44 +0200 Subject: [PATCH] Fix error message typos (#38894) Removes unintended the unintended code below multiple strings ```html ', ' )}), ``` --- packages/next/server/config.ts | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/packages/next/server/config.ts b/packages/next/server/config.ts index b982bbf20a62..b697ab1e4a56 100644 --- a/packages/next/server/config.ts +++ b/packages/next/server/config.ts @@ -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` ) } @@ -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` ) } @@ -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` ) }