Skip to content

Commit

Permalink
fix: fixed 500 -> 400 bad request error
Browse files Browse the repository at this point in the history
  • Loading branch information
titanism committed Nov 8, 2024
1 parent 89aedc2 commit f2a18c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/web/my-account/verify-records.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ async function verifyRecords(ctx) {
.join('')}</ul>`;
if (!ctx.api) ctx.flash('warning', extra);
} else if (errors.length > 0) {
const err = new Error(
const err = Boom.badRequest(
errors.length === 1
? errors[0]
: ctx.translate('MULTIPLE_VERIFICATION_ERRORS')
Expand Down

0 comments on commit f2a18c4

Please sign in to comment.