Skip to content

Commit 3c1da3c

Browse files
Magda Wiśniewskaflovilmart
authored andcommitted
Allow next middleware handle error in handleParseErrors (#2260)
1 parent 868ad5b commit 3c1da3c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/middlewares.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ var handleParseErrors = function(err, req, res, next) {
250250
res.json({code: Parse.Error.INTERNAL_SERVER_ERROR,
251251
message: 'Internal server error.'});
252252
}
253+
next(err);
253254
};
254255

255256
function enforceMasterKeyAccess(req, res, next) {

0 commit comments

Comments
 (0)