Skip to content

Commit

Permalink
Convert logging about an unknown type into an assert
Browse files Browse the repository at this point in the history
  • Loading branch information
loyd committed Nov 6, 2017
1 parent e8cfb0c commit a72929e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/collector.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,8 @@ class Collector {
const extractor = group[node.type];

if (!extractor) {
console.log('!!!!', node.type, group.entries);
//console.dir(node, {colors: true, depth: 5});
assert.fail(`No extractor for "${node.type}" in group "${group.entries[0]}"`);
return null;
//this._spawn(node, scope);
//return null;
}

const iter = extractor(node);
Expand Down

0 comments on commit a72929e

Please sign in to comment.