Mercurial > psgxs
changeset 17:ec7cea92fe8a
Show stack on unhandled error.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Tue, 19 Oct 2010 18:50:02 +0200 |
parents | 95fc43d1bd54 |
children | 75625771e410 |
files | psgxs.js |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/psgxs.js +++ b/psgxs.js @@ -45,7 +45,7 @@ function _(obj, color) { }; process.addListener('uncaughtException', function (err) { - console.log('\033[41;1mUncaught exception, this should never happen: ' + err + '.\033[0m'); + console.log('\033[41;1mUncaught exception (' + err + '), this should never happen:\033[0m\n' + err.stack); }); if (typeof xmpp.StanzaBuilder.cnode != 'function' || typeof xmpp.StanzaBuilder.prototype.cnode != 'function') {