Skip to content
Snippets Groups Projects
Commit 1fa1aaaf authored by alexander.quast's avatar alexander.quast :8ball: Committed by david.bauer
Browse files

Added: More log output for possible file serving errors

parent 61f889e1
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,7 @@ export default async function serveFilePlugin (fastify, options) {
reply.send(body)
} catch (err) {
if (isNotFoundError(err) || isVersionMismatchError(err)) throw fastify.httpErrors.createError(404, `File "${req.urlData('path')}" does not exist.`)
throw fastify.httpErrors.createError(err.statusCode || 500)
throw fastify.httpErrors.createError(err.statusCode || 500, err)
}
})
}
......@@ -72,7 +72,7 @@ export async function getVersionInfo () {
versionUpdateGauge.setToCurrentTime({ version: versionInfo.version })
return versionInfo
} catch (err) {
logger.error('[')
logger.error('[Version] Error in getVersionInfo', err)
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment