add res.respond, fix linting

This commit is contained in:
Matteo Pagliazzi
2015-11-23 13:01:47 +01:00
parent a26f713e18
commit 349122c9a1
7 changed files with 14 additions and 4 deletions

View File

@@ -68,7 +68,5 @@ export default function errorHandler (err, req, res, next) {
if (responseErr.errors) jsonRes.errors = responseErr.errors;
return res
.status(responseErr.httpCode)
.json(jsonRes);
return res.respond(responseErr.httpCode, jsonRes);
}