From 6d5dc21c9588e03395310b5e5affc25bef0fc00f Mon Sep 17 00:00:00 2001 From: billchurch Date: Sat, 20 May 2017 21:37:43 -0400 Subject: [PATCH] move from sys. to util. for utility functions --- util/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/index.js b/util/index.js index c7bb162..1410f3a 100644 --- a/util/index.js +++ b/util/index.js @@ -8,7 +8,7 @@ console.error = makeColorConsole(console.error, 'red') function makeColorConsole (fct, color) { return function () { for (var i in arguments) { - if (arguments[i] instanceof Object) { arguments[i] = sys.inspect(arguments[i]) } + if (arguments[i] instanceof Object) { arguments[i] = util.inspect(arguments[i]) } } fct(Array.prototype.join.call(arguments, ' ')[color]) }