diff --git a/web/apps/auth/src/services/code.ts b/web/apps/auth/src/services/code.ts index a04409cee..901411dd3 100644 --- a/web/apps/auth/src/services/code.ts +++ b/web/apps/auth/src/services/code.ts @@ -80,7 +80,7 @@ const _codeFromURIString = (id: string, uriString: string): Code => { const parseType = (url: URL): Code["type"] => { const t = url.host.toLowerCase(); if (t == "totp" || t == "hotp") return t; - throw new Error(`Unsupported code with host ${t}`); + throw new Error(`Unsupported code with host "${t}"`); }; const parseAccount = (url: URL): string | undefined => { diff --git a/web/apps/auth/src/services/remote.ts b/web/apps/auth/src/services/remote.ts index 07b15d7d7..11d57aa23 100644 --- a/web/apps/auth/src/services/remote.ts +++ b/web/apps/auth/src/services/remote.ts @@ -35,7 +35,7 @@ export const getAuthCodes = async (): Promise => { ); return codeFromURIString(entity.id, decryptedCode); } catch (e) { - log.error(`failed to parse codeId = ${entity.id}`); + log.error(`Failed to parse codeID ${entity.id}`, e); return null; } }),