Skip to content

Commit

Permalink
fix bug causing errors to propagated inappropriately
Browse files Browse the repository at this point in the history
  • Loading branch information
theganyo committed Jul 27, 2015
1 parent 64457cc commit f8b3968
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion passthrough-proxy-with-keyvalidation/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ a127.init(function(config) {
app.use(function(err, req, res, next) {
if (err && typeof err === 'object') {
Object.defineProperty(err, 'message', { enumerable: true });
res.end(JSON.stringify(err));
return res.end(JSON.stringify(err));
}
next(err);
});
Expand Down

0 comments on commit f8b3968

Please sign in to comment.