mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-05 21:49:25 +08:00
fix(verification): log
This commit is contained in:
parent
f1730e5d34
commit
ee0e3cf6e0
@ -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 }),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user