Fix derp in new logger (#283)

Chose to rename to `error` as that's what's used everywhere and what the `console` object would expose, so it's more of a drop-in replacement.
This commit is contained in:
Max-P 2016-04-27 03:42:54 -04:00 committed by Pavel Djundik
parent 21fb0e0709
commit 12c88debf4

View file

@ -14,7 +14,7 @@ function timestamp(type, messageArgs) {
return messageArgs; return messageArgs;
} }
exports.err = function() { exports.error = function() {
console.error.apply(console, timestamp(colors.red("[ERROR]"), arguments)); console.error.apply(console, timestamp(colors.red("[ERROR]"), arguments));
}; };