Merge pull request #601 from adrianlang/patch-1

Make parse error handler more robust
This commit is contained in:
Alexis Sellier
2012-02-01 11:54:59 -08:00

View File

@@ -19,7 +19,7 @@ var less = {
if (callback) {
parser.parse(input, function (e, root) {
callback(e, root.toCSS(options));
callback(e, root && root.toCSS && root.toCSS(options));
});
} else {
ee = new(require('events').EventEmitter);