fix: update error handling

This commit is contained in:
Derrick Hammer 2024-01-16 15:23:00 -05:00
parent d74d29e2c5
commit e1709a7910
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 2 deletions

View File

@ -376,7 +376,7 @@ func (h *HttpHandler) AccountLoginChallenge(jc jape.Context) {
decodedKey, err := base64.RawURLEncoding.DecodeString(pubkey)
if err != nil {
errored(err)
errored(errAccountGenerateChallengeErr)
return
}
@ -391,7 +391,7 @@ func (h *HttpHandler) AccountLoginChallenge(jc jape.Context) {
})
if result.Error != nil {
errored(err)
errored(result.Error)
return
}