π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Inline
Manav Rathi110639304523
diff --git a/web/apps/photos/src/services/typeDetectionService.ts b/web/apps/photos/src/services/typeDetectionService.tsindex 6ba76960bb..53c27205f8 100644--- a/web/apps/photos/src/services/typeDetectionService.ts+++ b/web/apps/photos/src/services/typeDetectionService.ts@@ -64,7 +64,7 @@ export async function getFileType(throw Error(CustomError.UNSUPPORTED_FILE_FORMAT);}log.error(`type detection failed for format ${fileFormat}`, e);- throw Error(CustomError.TYPE_DETECTION_FAILED(fileFormat));+ throw new Error(`type detection failed ${fileFormat}`);}}diff --git a/web/packages/shared/error/index.ts b/web/packages/shared/error/index.tsindex 736520b492..c9cc6c193a 100644--- a/web/packages/shared/error/index.ts+++ b/web/packages/shared/error/index.ts@@ -56,8 +56,6 @@ export const CustomError = {HIDDEN_COLLECTION_SYNC_FILE_ATTEMPTED:"hidden collection sync file attempted",UNKNOWN_ERROR: "Something went wrong, please try again",- TYPE_DETECTION_FAILED: (fileFormat: string) =>- `type detection failed ${fileFormat}`,WINDOWS_NATIVE_IMAGE_PROCESSING_NOT_SUPPORTED:"Windows native image processing is not supported",NETWORK_ERROR: "Network Error",