This commit is contained in:
Manav Rathi 2024-04-24 20:54:56 +05:30
parent d05ca58f57
commit 1106393045
No known key found for this signature in database
2 changed files with 1 additions and 3 deletions

View file

@ -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}`);
}
}

View file

@ -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",