initialize 'options' before using it

This commit is contained in:
Johannes Laire
2011-11-04 02:30:12 +02:00
parent 1751f13bb6
commit 0e6046e00d

View File

@@ -36,13 +36,13 @@ var less = {
}
},
writeError: function (ctx, options) {
options = options || {};
var message = "";
var extract = ctx.extract;
var error = [];
var stylize = options.color ? less.stylize : function (str) { return str };
options = options || {};
if (options.silent) { return }
if (!ctx.index) {