Log error.
This commit is contained in:
parent
df5396cff8
commit
8167f899bd
1 changed files with 1 additions and 0 deletions
1
index.js
1
index.js
|
@ -151,6 +151,7 @@ fastify.get('/s/:date/:filename', async (request, reply) => {
|
||||||
reply.code(200).header('Content-Type', 'text/html').send(html)
|
reply.code(200).header('Content-Type', 'text/html').send(html)
|
||||||
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
console.error(error)
|
||||||
reply.code(404).send({ error: 'File not found' })
|
reply.code(404).send({ error: 'File not found' })
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue