mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-30 12:24:25 +02:00
Pass pipeline errors onto 'next' error handler
This commit is contained in:
@@ -17,7 +17,7 @@ module.exports = {
|
||||
directorySize
|
||||
}
|
||||
|
||||
function getFile(req, res) {
|
||||
function getFile(req, res, next) {
|
||||
const { key, bucket } = req
|
||||
const { format, style } = req.query
|
||||
const options = {
|
||||
@@ -61,7 +61,8 @@ function getFile(req, res) {
|
||||
}
|
||||
|
||||
logger.log({ key, bucket, format, style }, 'sending file to response')
|
||||
pipeline(fileStream, res)
|
||||
|
||||
pipeline(fileStream, res, next)
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user