Skip to content

armgit / ente

Public Imported from GitHub
0

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

Inline

Manav Rathi2910a8ac39c5
diff --git a/web/apps/photos/src/components/PhotoFrame.tsx b/web/apps/photos/src/components/PhotoFrame.tsx
index ebb83bab83..9c3234fb26 100644
--- a/web/apps/photos/src/components/PhotoFrame.tsx
+++ b/web/apps/photos/src/components/PhotoFrame.tsx
@@ -200,7 +200,7 @@ const PhotoFrame = ({
log.info(
`[${id}]PhotoSwipe: updateURL: file id mismatch: ${file.id} !== ${id}`,
);
- throw Error(CustomError.UPDATE_URL_FILE_ID_MISMATCH);
+ throw Error("update url file id mismatch");
}
if (file.msrc && !forceUpdate) {
throw Error(CustomError.URL_ALREADY_SET);
@@ -220,7 +220,7 @@ const PhotoFrame = ({
log.info(
`[${id}]PhotoSwipe: updateSrcURL: file id mismatch: ${file.id}`,
);
- throw Error(CustomError.UPDATE_URL_FILE_ID_MISMATCH);
+ throw Error("update url file id mismatch");
}
if (file.isSourceLoaded && !forceUpdate) {
throw Error(CustomError.URL_ALREADY_SET);
diff --git a/web/packages/shared/error/index.ts b/web/packages/shared/error/index.ts
index cdaf30e549..6d14efeae8 100644
--- a/web/packages/shared/error/index.ts
+++ b/web/packages/shared/error/index.ts
@@ -70,9 +70,7 @@ export const CustomError = {
TWO_FACTOR_ENABLED: "two factor enabled",
CLIENT_ERROR: "client error",
ServerError: "server error",
- UPDATE_URL_FILE_ID_MISMATCH: "update url file id mismatch",
URL_ALREADY_SET: "url already set",
- FILE_CONVERSION_FAILED: "file conversion failed",
};
export function handleUploadError(error: any): Error {