Permalink
Browse files

[api] In case of an error, end request with `err.message`

  • Loading branch information...
1 parent 3262b23 commit d8ef5d18f4a2512e95fbe7344a00294d6830197e @mmalecki mmalecki committed May 18, 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 d8ef5d1

Please sign in to comment.