Permalink
Browse files

Better error handling.

  • Loading branch information...
1 parent f098b60 commit 22dcfb3b47d6bfbe721f35fbf86c6e7b5a7703b9 @Yuffster committed Apr 12, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 server.js
View
@@ -19,7 +19,8 @@ var sys = require('util'),
fs = require('fs');
log_error = function (e) {
- console.log("ERROR:".color('red'), e.stack);
+ console.log("ERROR:".color('red'), e );
+ console.log(e.stack || console.trace());
}
exports.start = function(config) {

0 comments on commit 22dcfb3

Please sign in to comment.