woops, res.json the error

This commit is contained in:
Tyler Renelle 2013-08-11 10:20:27 -04:00
parent 23f3154764
commit 7a83be70b1

View file

@ -382,6 +382,6 @@ api.batchUpdate = (req, res, next) ->
# call all the operations, then return the user object to the requester
async.series actions, (err) ->
return res.send 500, {err} if err
return res.json 500, {err} if err
res.json 200, helpers.derbyUserToAPI(user)
console.log "Reply sent"