Skip to content

Commit

Permalink
Print errors unless it's just that the file doesn't exist fixes #227
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleAMathews committed Apr 9, 2016
1 parent 181d0c3 commit 859e412
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/utils/build-page/url-resolver.js
Expand Up @@ -8,7 +8,9 @@ try {
const nodeConfig = require(gatsbyNodeConfig)
rewritePath = nodeConfig.rewritePath
} catch (e) {
// Ignore
if (e.code !== 'MODULE_NOT_FOUND') {
console.log(e)
}
}

export default function pathResolver (pageData, parsedPath) {
Expand Down
4 changes: 3 additions & 1 deletion lib/utils/webpack.config.js
Expand Up @@ -10,7 +10,9 @@ try {
const nodeConfig = require(gatsbyNodeConfig)
modifyWebpackConfig = nodeConfig.modifyWebpackConfig
} catch (e) {
// Ignore
if (e.code !== 'MODULE_NOT_FOUND') {
console.log(e)
}
}

module.exports = (program, directory, stage, webpackPort = 1500, routes = []) => {
Expand Down

0 comments on commit 859e412

Please sign in to comment.