From c098256f2fba17c6d2fe2308d18d984c5d6c9ee2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karol=20S=C3=B3jko?= Date: Thu, 9 Mar 2023 12:10:27 +0100 Subject: [PATCH] chore: add temporary error log on authenticator authentication options generation --- .../GetAuthenticatorAuthenticationResponse.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/snjs/lib/Domain/UseCase/GetAuthenticatorAuthenticationResponse/GetAuthenticatorAuthenticationResponse.ts b/packages/snjs/lib/Domain/UseCase/GetAuthenticatorAuthenticationResponse/GetAuthenticatorAuthenticationResponse.ts index fad5fe6e1..0d0e9defb 100644 --- a/packages/snjs/lib/Domain/UseCase/GetAuthenticatorAuthenticationResponse/GetAuthenticatorAuthenticationResponse.ts +++ b/packages/snjs/lib/Domain/UseCase/GetAuthenticatorAuthenticationResponse/GetAuthenticatorAuthenticationResponse.ts @@ -32,6 +32,8 @@ export class GetAuthenticatorAuthenticationResponse implements UseCaseInterface< try { authenticatorResponse = await this.authenticatorVerificationPromptFunction(authenticationOptions) } catch (error) { + console.error(error) + return Result.fail(`Could not generate authenticator authentication options: ${(error as Error).message}`) }