# HG changeset patch # User Emmanuel Gil Peyrot # Date 1287507002 -7200 # Node ID ec7cea92fe8ad169b00ab7620482bce6e03d21af # Parent 95fc43d1bd54bef55f17fd81f0ccb1ef356a2ebe Show stack on unhandled error. diff --git a/psgxs.js b/psgxs.js --- 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') {