removed "cause" parameter for error

This commit is contained in:
Aster Fialla
2026-02-15 01:16:17 -05:00
parent 5c1d974246
commit 2e63532dc7

View File

@@ -208,7 +208,7 @@ mh.checkImageFormatValidity = async function(imageUrl) {
if (blobFile.size > 1000000 || !acceptableImages.includes(blobFile.type)) throw new Error(enums.err.PROPIC_FAILS_REQUIREMENTS);
return true;
}).catch((error) => {
throw new Error(`${enums.err.PROPIC_CANNOT_LOAD}: ${error.message}, ${error.cause}`);
throw new Error(`${enums.err.PROPIC_CANNOT_LOAD}: ${error.message}`);
});
}