Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Tweak error report

Manav Rathifec040e5285b
diff --git a/web/apps/auth/src/services/code.ts b/web/apps/auth/src/services/code.ts
index a04409ceea..901411dd30 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 07b15d7d71..11d57aa23b 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<Code[]> => {
);
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;
}
}),