Add email and error message when duplicate email at registration

This commit is contained in:
pikiou
2022-04-12 17:31:53 +02:00
parent dc4fdda658
commit ebefcb247c
9 changed files with 123 additions and 79 deletions

View File

@@ -604,7 +604,7 @@ async function tryNTimes<T>(
return await func()
} catch (e: any) {
console.error(e?.error || e?.message || e)
console.error(`${repeatCount} attemps left every ${delayBetweenAttempts}`)
console.error(`${repeatCount} attempts left every ${delayBetweenAttempts}`)
await new Promise<void>((resolve) => {
setTimeout(() => resolve(), delayBetweenAttempts)
})