Allow next middleware handle error in handleParseErrors (#2260)

This commit is contained in:
Magda Wiśniewska
2016-07-12 18:32:10 +02:00
committed by Florent Vilmart
parent 868ad5bdfd
commit 3c1da3cc2a

View File

@@ -250,6 +250,7 @@ var handleParseErrors = function(err, req, res, next) {
res.json({code: Parse.Error.INTERNAL_SERVER_ERROR, res.json({code: Parse.Error.INTERNAL_SERVER_ERROR,
message: 'Internal server error.'}); message: 'Internal server error.'});
} }
next(err);
}; };
function enforceMasterKeyAccess(req, res, next) { function enforceMasterKeyAccess(req, res, next) {