Skip to content

Commit

Permalink
fixed bug in the error function
Browse files Browse the repository at this point in the history
  • Loading branch information
Juravenator committed Dec 6, 2016
1 parent 17694de commit c98c2d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ module.exports.makeSimpleLogger("warn");
module.exports.makeSimpleLogger("success");

module.exports.makeCustomLogger("error", function() {
var isTrace = arguments[0] && arguments[0].substring(0, 5) == "Trace";
var isTrace = typeof arguments[0] == "string" && arguments[0].substring(0, 5) == "Trace";
var type = isTrace ? "TRACE" : "ERROR";
module.exports.printPrefix(type, module.exports.options.styles.error[0]);
if (isTrace) {
Expand Down

0 comments on commit c98c2d0

Please sign in to comment.