Skip to content

Commit 0419f37

Browse files
committed
process error should not cause parse error
1 parent 9b80f0b commit 0419f37

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/csscomb.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,11 @@ Comb.prototype = {
8585
processString: function(text, filename) {
8686
var tree;
8787
try {
88-
tree = this.processTree(cssp.parse(text));
88+
tree = cssp.parse(text);
8989
} catch (e) {
9090
throw new Error('Parsing error at ' + filename + ': ' + e.message);
9191
}
92+
tree = this.processTree(tree);
9293
return cssp.translate(tree);
9394
},
9495

0 commit comments

Comments
 (0)