Add some more logging (#2402)
* Add a few logs * Report unknown create account errors separately * Downgrade to warn * Nvm
This commit is contained in:
parent
d95972c9ff
commit
2f6f27c4fb
3 changed files with 16 additions and 10 deletions
|
@ -136,7 +136,13 @@ export async function submit({
|
|||
msg`Invite code not accepted. Check that you input it correctly and try again.`,
|
||||
)
|
||||
}
|
||||
logger.error('Failed to create account', {error: e})
|
||||
|
||||
if ([400, 429].includes(e.status)) {
|
||||
logger.warn('Failed to create account', {error: e})
|
||||
} else {
|
||||
logger.error(`Failed to create account (${e.status} status)`, {error: e})
|
||||
}
|
||||
|
||||
uiDispatch({type: 'set-processing', value: false})
|
||||
uiDispatch({type: 'set-error', value: cleanError(errMsg)})
|
||||
throw e
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue