Skip to content

Commit 9e8e933

Browse files
Magda WiśniewskaRafael Santos
authored andcommitted
Allow next middleware handle error in handleParseErrors (parse-community#2260)
1 parent 9343ad1 commit 9e8e933

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
@@ -245,6 +245,7 @@ var handleParseErrors = function(err, req, res, next) {
245245
res.json({code: Parse.Error.INTERNAL_SERVER_ERROR,
246246
message: 'Internal server error.'});
247247
}
248+
next(err);
248249
};
249250

250251
function enforceMasterKeyAccess(req, res, next) {

0 commit comments

Comments
 (0)