diff --git a/packages/gatsby-source-filesystem/src/create-remote-file-node.js b/packages/gatsby-source-filesystem/src/create-remote-file-node.js index 4465ced0f0de4..c190c0ffe9cb6 100644 --- a/packages/gatsby-source-filesystem/src/create-remote-file-node.js +++ b/packages/gatsby-source-filesystem/src/create-remote-file-node.js @@ -105,7 +105,6 @@ async function pushToQueue(task, cb) { const node = await processRemoteNode(task) return cb(null, node) } catch (e) { - console.warn(`Failed to process remote content ${task.url}`) return cb(e) } } @@ -267,8 +266,8 @@ const pushTask = task => .on(`finish`, task => { resolve(task) }) - .on(`failed`, () => { - resolve() + .on(`failed`, err => { + reject(`failed to process ${task.url}\n${err}`) }) }) @@ -327,9 +326,7 @@ module.exports = ({ } if (!url || isWebUri(url) === undefined) { - // should we resolve here, or reject? - // Technically, it's invalid input - return Promise.resolve() + return Promise.reject(`wrong url: ${url}`) } totalJobs += 1