From 58ed3ca2deebe9e5429e28c889960adb4fed5e17 Mon Sep 17 00:00:00 2001 From: Mikhail Novikov Date: Thu, 22 Aug 2019 10:39:17 +0300 Subject: [PATCH] fix(gatsby): Remove deprecation warning from express-graphql (#16956) --- packages/gatsby/src/commands/develop.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/gatsby/src/commands/develop.js b/packages/gatsby/src/commands/develop.js index 2bfec60bd9ac4..64c238669d72f 100644 --- a/packages/gatsby/src/commands/develop.js +++ b/packages/gatsby/src/commands/develop.js @@ -162,7 +162,7 @@ async function startServer(program, { activity }) { schema, graphiql: false, context: withResolverContext({}, schema, schemaCustomization.context), - formatError(err) { + customFormatErrorFn(err) { return { ...formatError(err), stack: err.stack ? err.stack.split(`\n`) : [],