Skip to content

Commit d6692e1

Browse files
committed
one more place to use logProtocolError
1 parent 4e558c3 commit d6692e1

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

user.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -342,11 +342,7 @@ func (u *DynamoUser) FinishLogin(r *http.Request) (*webauthn.Credential, error)
342342
br := fixEncoding(body)
343343
parsedResponse, err := protocol.ParseCredentialRequestResponseBody(br)
344344
if err != nil {
345-
var protocolError *protocol.Error
346-
if errors.As(err, &protocolError) {
347-
log.Printf("failed to parse credential request response body: %s", body)
348-
log.Printf("ProtocolError: %s, DevInfo: %s", protocolError.Details, protocolError.DevInfo)
349-
}
345+
logProtocolError(fmt.Sprintf("failed to parse credential request response body: %s", body), err)
350346
return &webauthn.Credential{}, fmt.Errorf("failed to parse credential request response body: %s", err)
351347
}
352348

0 commit comments

Comments
 (0)