From 3a76e18c6adc68a32124476936329e3be12dd9ae Mon Sep 17 00:00:00 2001 From: Quang Luong Date: Sun, 3 May 2020 18:18:57 -0400 Subject: [PATCH 1/2] Missing space in an error message Add missing space in transformHeader check error message --- packages/gatsby-plugin-netlify/src/build-headers-program.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/gatsby-plugin-netlify/src/build-headers-program.js b/packages/gatsby-plugin-netlify/src/build-headers-program.js index e7f3a40820e37..4c717c75314dc 100644 --- a/packages/gatsby-plugin-netlify/src/build-headers-program.js +++ b/packages/gatsby-plugin-netlify/src/build-headers-program.js @@ -234,7 +234,7 @@ const validateUserOptions = (pluginOptions, reporter) => headers => { if (!_.isFunction(pluginOptions.transformHeaders)) { throw new Error( `The "transformHeaders" option to gatsby-plugin-netlify must be a function ` + - `that returns a array of header strings.` + + `that returns a array of header strings. ` + `Check your gatsby-config.js.` ) } From 038e3d6d8615a1bb4fe451da53d6914a85e252fc Mon Sep 17 00:00:00 2001 From: Quang Luong Date: Sun, 3 May 2020 18:38:57 -0400 Subject: [PATCH 2/2] typo --- packages/gatsby-plugin-netlify/src/build-headers-program.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/gatsby-plugin-netlify/src/build-headers-program.js b/packages/gatsby-plugin-netlify/src/build-headers-program.js index 4c717c75314dc..326ef1a9d141e 100644 --- a/packages/gatsby-plugin-netlify/src/build-headers-program.js +++ b/packages/gatsby-plugin-netlify/src/build-headers-program.js @@ -234,7 +234,7 @@ const validateUserOptions = (pluginOptions, reporter) => headers => { if (!_.isFunction(pluginOptions.transformHeaders)) { throw new Error( `The "transformHeaders" option to gatsby-plugin-netlify must be a function ` + - `that returns a array of header strings. ` + + `that returns an array of header strings. ` + `Check your gatsby-config.js.` ) }