Skip to content

Commit

Permalink
add log upload file s3 fail
Browse files Browse the repository at this point in the history
  • Loading branch information
fufeck committed Sep 13, 2023
1 parent dd56470 commit 452d563
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/models/file.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ async function writeFile(buffer, filename, metadata = {}) {
return {_id, filename, ...metadata}
} catch (error) {
console.error(error)
throw createError(400, 'Problème lors de l‘upload de fichier')
throw createError(400, `<<FILE>> Fichier non uploadé ${filename}, ${_id}`)
}
}

Expand Down

0 comments on commit 452d563

Please sign in to comment.