diff psgxs.js @ 17:ec7cea92fe8a

Show stack on unhandled error.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Tue, 19 Oct 2010 18:50:02 +0200
parents 9a6b8b3357c6
children 75625771e410
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') {