Fixing messc for errors

This commit is contained in:
Tom MacWright 2011-01-17 14:03:00 -05:00
parent 96d19204cf
commit 3fbbd5fbb0

View File

@ -91,14 +91,14 @@ fs.readFile(input, 'utf-8', function (e, data) {
filename: input
}).parse(data, function (err, tree) {
if (err) {
less.writeError(err, options);
mess.writeError(err, options);
process.exit(1);
} else {
try {
css = tree.toCSS({ compress: options.compress });
sys.print(css);
} catch (e) {
less.writeError(e, options);
mess.writeError(e, options);
process.exit(2);
}
}