From cfe3734c2fe79a934a712b5671521159d90b4dd2 Mon Sep 17 00:00:00 2001 From: tqureshi-uog Date: Wed, 1 Feb 2023 11:54:39 -0500 Subject: [PATCH] Change reporter.panic to reporter.panicOnBuild Fixes issue #37557 so gatsby develop runs successfully even if Image CDN field generation fails for a particular image --- packages/gatsby-source-drupal/src/normalize.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/gatsby-source-drupal/src/normalize.ts b/packages/gatsby-source-drupal/src/normalize.ts index 498f7624ec2c4..f5883d40d5d6e 100644 --- a/packages/gatsby-source-drupal/src/normalize.ts +++ b/packages/gatsby-source-drupal/src/normalize.ts @@ -131,7 +131,7 @@ const getGatsbyImageCdnFields = async ({ 2 ) ) - reporter.panic( + reporter.panicOnBuild( `[gatsby-source-drupal] Encountered an unrecoverable error while generating Gatsby Image CDN fields for url ${url}. See above for additional information.` ) }