Permalink
Browse files

More verbose error printing for 'error' event raised on http server

  • Loading branch information...
dhruvbird committed Jul 8, 2012
1 parent ad5a959 commit b39b1c3fd7d0b340cfa88434a426c5cc62a813b2
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/bosh.js
View
@@ -204,8 +204,8 @@ exports.createServer = function (options) {
// event and throw an exception if it is unhandled
if (!bep.emit('error', ex)) {
throw new Error(
- sprintf('ERROR on listener at endpoint: http://%s:%s%s',
- options.host, options.port, options.path)
+ sprintf('ERROR (%s) on listener at endpoint: http://%s:%s%s',
+ String(ex), options.host, options.port, options.path)
);
}
}

0 comments on commit b39b1c3

Please sign in to comment.