Skip to content

armgit / ente

Public Imported from GitHub
0

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

Note

Manav Rathi38bbd8a5d7ec
diff --git a/web/packages/base/http.ts b/web/packages/base/http.ts
index 2b8e189b74..8dd9b76d09 100644
--- a/web/packages/base/http.ts
+++ b/web/packages/base/http.ts
@@ -141,6 +141,8 @@ export const isHTTP401Error = (e: unknown) =>
* Return `true` if this is an error because of a HTTP failure response returned
* by museum with the given "code" and HTTP status.
*
+ * > The function is async because it needs to parse the payload.
+ *
* For some known set of errors, museum returns a payload of the form
*
* {"code":"USER_NOT_REGISTERED","message":"User is not registered"}