fix(verification): log

This commit is contained in:
xilesun 2025-03-20 16:04:29 +08:00
parent f1730e5d34
commit ee0e3cf6e0

View File

@ -82,7 +82,7 @@ async function create(ctx: Context, next: Next) {
case 'RateLimit': case 'RateLimit':
return ctx.throw(429, ctx.t('You are trying so frequently, please slow down', { ns: namespace })); return ctx.throw(429, ctx.t('You are trying so frequently, please slow down', { ns: namespace }));
default: default:
console.error(error); ctx.log.error(error);
return ctx.throw( return ctx.throw(
500, 500,
ctx.t('Verification send failed, please try later or contact to administrator', { ns: namespace }), ctx.t('Verification send failed, please try later or contact to administrator', { ns: namespace }),