fix tests

This commit is contained in:
root
2026-06-10 20:16:06 -04:00
parent 30c4997656
commit 64df4439d3
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ export function detectImageType(buffer: Buffer): DetectedFile | null {
function assertSafeImageContent(file: Express.Multer.File) {
const detected = detectImageType(file.buffer)
if (!detected || !ALLOWED_IMAGE_TYPES.has(detected.mime)) {
throw new ValidationError('Unsupported or spoofed image file')
throw new ValidationError(`Unsupported or spoofed image file: ${file.name}`)
}
if (file.mimetype !== detected.mime) {