From b2bb90187d73551e2fbc2bc34f66685bee37f9a8 Mon Sep 17 00:00:00 2001 From: Dustin Rouillard Date: Sun, 21 Apr 2024 15:46:01 -0600 Subject: [PATCH] Add error log on s3 fail --- src/methods/files/upload-file.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/methods/files/upload-file.ts b/src/methods/files/upload-file.ts index dbddb61..058b072 100644 --- a/src/methods/files/upload-file.ts +++ b/src/methods/files/upload-file.ts @@ -90,6 +90,7 @@ export async function uploadFile(req: FastifyRequest<{ Params: { type: string } }) ); } catch (error) { + console.error(error); return res.status(400).send({ code: 'failed_to_put_object', message: 'Failed to put object to s3 bucket' }); }