Skip to content

Commit

Permalink
example-using-remark reject Promise on error (#9633)
Browse files Browse the repository at this point in the history
<!--
  Q. Which branch should I use for my pull request?
  A. Use `master` branch (probably).

  Q. Which branch if my change is a bug fix for Gatsby v1?
  A. In this case, you should use the `v1` branch

  Q. Which branch if I'm still not sure?
  A. Use `master` branch. Ask in the PR if you're not sure and a Gatsby maintainer will be happy to help :)

  Note: We will only accept bug fixes for Gatsby v1. New features should be added to Gatsby v2.

  Learn more about contributing: https://www.gatsbyjs.org/docs/how-to-contribute/
-->
  • Loading branch information
Benjamin ABEL authored and DSchau committed Nov 2, 2018
1 parent e43776e commit 8a660b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/using-remark/gatsby-node.js
Expand Up @@ -33,7 +33,7 @@ exports.createPages = ({ graphql, actions }) => {
`
).then(result => {
if (result.errors) {
console.log(result.errors)
return reject(result.errors)
}

// Create blog posts pages.
Expand Down Expand Up @@ -68,7 +68,7 @@ exports.createPages = ({ graphql, actions }) => {
})
})

resolve()
return resolve()
})
})
}
Expand Down

0 comments on commit 8a660b7

Please sign in to comment.