diff --git a/packages/gatsby/src/utils/api-runner-node.js b/packages/gatsby/src/utils/api-runner-node.js index 0262c3b948fe9..a122894823e34 100644 --- a/packages/gatsby/src/utils/api-runner-node.js +++ b/packages/gatsby/src/utils/api-runner-node.js @@ -149,12 +149,17 @@ module.exports = async (api, args = {}, pluginSource) => mapSeries( noSourcePluginPlugins, (plugin, callback) => { - currentPluginName = plugin.name + let currentPluginName + if (plugin.name === `default-site-plugin`) { + currentPluginName = `gatsby-node.js` + } else { + currentPluginName = `Plugin ${plugin.name}` + } Promise.resolve(runAPI(plugin, api, args)).asCallback(callback) }, (err, results) => { if (err) { - reporter.error(`Plugin ${currentPluginName} returned an error`, err) + reporter.error(`${currentPluginName} returned an error`, err) } // Remove runner instance apisRunning = apisRunning.filter(runner => runner !== apiRunInstance)