Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Commit

Permalink
Add error log on s3 fail
Browse files Browse the repository at this point in the history
  • Loading branch information
dustinrouillard committed Apr 21, 2024
1 parent aa44752 commit b2bb901
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/methods/files/upload-file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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' });
}

Expand Down

0 comments on commit b2bb901

Please sign in to comment.