Skip to content

Commit

Permalink
Filter out AssetGraph.ensureAssetConfigHasType errors. They were usua…
Browse files Browse the repository at this point in the history
…lly duplicates of a later more informative ENOENT anyway
  • Loading branch information
Munter committed Oct 17, 2016
1 parent 2a78445 commit 15b8327
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,11 @@ module.exports = function (options) {
});

function handleError(error) {
if (error.message.indexOf('AssetGraph.ensureAssetConfigHasType: Couldn\'t load') === 0) {
return;
}


var report = {
ok: false,
name: ('should not have any errors loading ' + (error.relation ? 'relation' : 'asset')),
Expand Down

0 comments on commit 15b8327

Please sign in to comment.