Skip to content
Browse files

make sure server error is sent as 500

  • Loading branch information...
1 parent 4c4dfdb commit 9dd679d880d0adaa1631fa990ddaba51b96becb8 @dominictarr committed Jun 5, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 server.js
View
1 server.js
@@ -136,6 +136,7 @@ function summary(opts,res){
db.view('all/summary',opts, function (err,data){
if(err) {
console.error(err)
+ res.statusCode = 500
return res.send(err)
}
data.rows.sort(function (x,y){

0 comments on commit 9dd679d

Please sign in to comment.
Something went wrong with that request. Please try again.