From fe0eaa8225f9a8f3d6a6be20fd6844d33d9bee36 Mon Sep 17 00:00:00 2001 From: Anthon Pang Date: Sun, 29 Sep 2013 15:15:48 -0400 Subject: [PATCH] util.error is deprecated --- lib/less/index.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/less/index.js b/lib/less/index.js index 6dd685cc..ced92fb2 100644 --- a/lib/less/index.js +++ b/lib/less/index.js @@ -1,5 +1,4 @@ var path = require('path'), - sys = require('util'), url = require('url'), request, fs = require('fs'); @@ -86,7 +85,7 @@ var less = { writeError: function (ctx, options) { options = options || {}; if (options.silent) { return; } - sys.error(less.formatError(ctx, options)); + console.error(less.formatError(ctx, options)); } }; @@ -154,7 +153,7 @@ less.Parser.fileLoader = function (file, currentFileInfo, callback, env) { return; } if (!body) { - sys.error( 'Warning: Empty body (HTTP '+ res.statusCode + ') returned by "' + urlStr +'"' ); + console.error( 'Warning: Empty body (HTTP '+ res.statusCode + ') returned by "' + urlStr +'"' ); } if (error) { callback({ type: 'File', message: "resource '" + urlStr + "' gave this Error:\n "+ error +"\n" });