Skip to content

Commit ec5bf69

Browse files
committed
clarify warnings and output
1 parent e8b2008 commit ec5bf69

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

bin/css-coverage

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ program.stdout.on('data', function(data) {
105105
var parsedJSON = JSON.parse(entry);
106106
coverageOutput.push(parsedJSON);
107107
} catch (e) {
108-
console.error('BUG: Could not parse: ' + entry);
108+
console.warn(entry);
109109
}
110110
}
111111
});

phantom-coverage.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ page.open('file://' + htmlPath, function(status) {
4747
var matches = window.Sizzle(selector);
4848
count += matches.length;
4949
} catch (e) {
50-
console.error('BUG: Problem matching selector: ' + selector)
50+
// If we cannot select it then we cannot cover it
51+
console.warn('Skipping selector that could not be matched using SizzleJS: ' + selector)
5152
}
5253
});
5354
}

0 commit comments

Comments
 (0)