Skip to content

Commit 869b155

Browse files
committed
Lib: Add ERROR prefix to error messages
1 parent f328c33 commit 869b155

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/lib/loggers.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@ loggers.warn = function() {
5353

5454
loggers.error = function() {
5555
if(config.logging > 0) {
56+
var messages = ['ERROR:'];
57+
58+
for(var i = 0; i < arguments.length; i++) {
59+
messages.push(arguments[i]);
60+
}
61+
5662
console.error.apply(console, arguments);
5763
}
5864
};

0 commit comments

Comments
 (0)