From 8167f899bd22f93e691f180eff468cd997a80cae Mon Sep 17 00:00:00 2001 From: Cameron Redmore Date: Sat, 15 Feb 2025 12:43:55 +0000 Subject: [PATCH] Log error. --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index 064f7a8..c00dc78 100644 --- a/index.js +++ b/index.js @@ -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' }) } })