graphql error logging

This commit is contained in:
Austin Green 2017-11-19 10:23:00 -05:00
parent 1720b2cf40
commit aa422cbb31
2 changed files with 2 additions and 1 deletions

View file

@ -23,6 +23,7 @@ exports.createPages = ({ boundActionCreators, graphql }) => {
}
`).then(result => {
if (result.errors) {
result.errors.forEach(e => console.error(e.toString()));
return Promise.reject(result.errors);
}
result.data.allMarkdownRemark.edges.forEach(({ node }) => {

View file

@ -19,7 +19,7 @@ const Navbar = () => (
</Link>
</div>
<div className="navbar-end">
<a className="navbar-item" href="https://github.com/AustinGreen/gatsby-netlify-cms-boilerplate" target="_blank">
<a className="navbar-item" href="https://github.com/AustinGreen/gatsby-netlify-cms-boilerplate" target="_blank" rel="noopener noreferrer">
<span className="icon">
<img src={github} alt="Github" />
</span>