From accffade40a55266a87ca35680f40d62bf01cd00 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Tue, 16 Jan 2024 15:26:57 -0500 Subject: [PATCH] fix: update error handling --- api/s5/http.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/s5/http.go b/api/s5/http.go index 506618b..1c35c75 100644 --- a/api/s5/http.go +++ b/api/s5/http.go @@ -264,19 +264,19 @@ func (h *HttpHandler) AccountRegister(jc jape.Context) { decodedResponse, err := base64.RawURLEncoding.DecodeString(request.Response) if err != nil { - errored(err) + errored(errInvalidChallengeErr) return } if len(decodedResponse) != 65 { - errored(err) + errored(errInvalidChallengeErr) return } decodedChallenge, err := base64.RawURLEncoding.DecodeString(challenge.Challenge) if err != nil { - errored(err) + errored(errInvalidChallengeErr) return }