Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include the actual exception message from uncaught exceptions #204

Closed
danhstevens opened this issue Dec 14, 2012 · 2 comments
Closed

Include the actual exception message from uncaught exceptions #204

danhstevens opened this issue Dec 14, 2012 · 2 comments

Comments

@danhstevens
Copy link

It appears when handleExceptions is set to true it logs out all the information except the message of the actual uncaught exception. Instead, it has a message of "uncaughtException". It would be a lot more useful if the original message from the uncaught exception was included along side all of the other meta data.

@gdw2
Copy link
Contributor

gdw2 commented May 20, 2014

I'm still seeing this symptom. Consider my log output below:

The real message, which is Error: connect ETIMEDOUT,Error: connect ETIMEDOUT, is nowhere to be found. (This error message is produced when sequelize (or one of its dependencies) can't establish a connection to a mysql server.)

2014-05-16T09:56:13.153Z - error: uncaughtException: undefined
{ date: 'Fri May 16 2014 02:56:13 GMT-0700 (MST)',
  process:
   { pid: 11456,
     uid: 1000,
     gid: 1000,
     cwd: '/home/gwarner/server',
     execPath: '/usr/bin/node',
     version: 'v0.10.28',
     argv: [ 'coffee', '/home/gwarner/server/server.coffee' ],
     memoryUsage: { rss: 81068032, heapTotal: 69248128, heapUsed: 34750808 } },
  os:
   { loadavg: [ 0.0029296875, 0.03173828125, 0.109375 ],
     uptime: 131953.968870164 },
  trace: [],
  stack: undefined }

@gdw2
Copy link
Contributor

gdw2 commented May 20, 2014

The problem is, in my case, err.message is undefined, and err contains the real message text. I'll look into a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants