Commit d80c7092 authored by Leo Iannacone's avatar Leo Iannacone

print only the error message

parent b25105da
...@@ -8,7 +8,7 @@ var path = require('path'), ...@@ -8,7 +8,7 @@ var path = require('path'),
function __errors_handler(from, err, socket) { function __errors_handler(from, err, socket) {
if (!socket) if (!socket)
from = 'NO SOCKET: ' + from; from = 'NO SOCKET: ' + from;
console.error(from, err); console.error(from, err.message);
if (socket) if (socket)
socket.emit(config.events.error, err.message); socket.emit(config.events.error, err.message);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment