Skip to content

Commit e28b508

Browse files
committed
Merge pull request #35 from garthenweb/master
Show error when csscomb task throws
2 parents d4318c9 + baddde9 commit e28b508

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

tasks/csscomb.js

+7-2
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,17 @@ module.exports = function (grunt) {
7474

7575
// Get CSS from a source file:
7676
var css = grunt.file.read(src);
77+
var combed;
7778

7879
// Comb it:
7980
grunt.log.ok('Sorting file "' + src + '"...');
8081
var syntax = src.split('.').pop();
81-
var combed = comb.processString(css, { syntax: syntax });
82-
grunt.file.write(f.dest, combed);
82+
try {
83+
combed = comb.processString(css, { syntax: syntax });
84+
grunt.file.write(f.dest, combed);
85+
} catch(e) {
86+
grunt.log.error(e);
87+
}
8388
});
8489
});
8590
});

0 commit comments

Comments
 (0)