Log error.

This commit is contained in:
Cameron Redmore 2025-02-15 12:43:55 +00:00
parent df5396cff8
commit 8167f899bd

View file

@ -151,6 +151,7 @@ fastify.get('/s/:date/:filename', async (request, reply) => {
reply.code(200).header('Content-Type', 'text/html').send(html)
} catch (error) {
console.error(error)
reply.code(404).send({ error: 'File not found' })
}
})