mirror of
https://github.com/kingomarnajjar/gatsby-starter-netlify-cms.git
synced 2026-07-25 22:27:24 +10:00
graphql error logging
This commit is contained in:
parent
1720b2cf40
commit
aa422cbb31
2 changed files with 2 additions and 1 deletions
|
|
@ -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 }) => {
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue