improve webauthn errors (#1179)

This commit is contained in:
Firstyear 2022-11-08 20:39:44 +10:00 committed by GitHub
parent 92d79489fc
commit 565fca5891
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1372,7 +1372,7 @@ impl<'a> IdmServerCredUpdateTransaction<'a> {
session.account.existing_credential_id_list(),
)
.map_err(|e| {
error!(?e, "Unable to start passkey registration");
error!(eclass=?e, emsg=%e, "Unable to start passkey registration");
OperationError::Webauthn
})?;
@ -1401,7 +1401,7 @@ impl<'a> IdmServerCredUpdateTransaction<'a> {
.webauthn
.finish_passkey_registration(reg, pk_reg)
.map_err(|e| {
error!(?e, "Unable to start passkey registration");
error!(eclass=?e, emsg=%e, "Unable to start passkey registration");
OperationError::Webauthn
})?;
let pk_id = Uuid::new_v4();