Permalink
Browse files

Merge pull request #27 from flatiron/error-message

[api] In case of an error, end request with `err.message`
  • Loading branch information...
2 parents 3262b23 + d8ef5d1 commit 9ed1c06081a4152f08ed79038fe28d369a68d9e9 @indexzero indexzero committed May 22, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/core.js
View
@@ -68,7 +68,7 @@ core.createServer = function (options) {
core.errorHandler = function error(err, req, res) {
if (err) {
(this.res || res).writeHead(err.status || 500, err.headers || { "Content-Type": "text/plain" });
- (this.res || res).end(err.stack + "\n");
+ (this.res || res).end(err.message + "\n");
return;
}

0 comments on commit 9ed1c06

Please sign in to comment.