Skip to content

Commit

Permalink
minor edit
Browse files Browse the repository at this point in the history
  • Loading branch information
rosado committed Jan 9, 2025
1 parent 603605a commit ceb8819
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/middleware/common.middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export function validateQueryParamsFn (req, res, next) {
next()
} catch (error) {
const err = new MiddlewareError('Query params validation error', 400, { cause: error })
res.status(400).render(err.template, { ...errorTemplateContext(), err })
res.status(err.statusCode).render(err.template, { ...errorTemplateContext(), err })
}
}

Expand Down

0 comments on commit ceb8819

Please sign in to comment.