mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-24 04:01:47 +00:00
Pass pipeline errors onto 'next' error handler
This commit is contained in:
parent
87b51d0c35
commit
e27cf4db7b
1 changed files with 3 additions and 2 deletions
|
@ -17,7 +17,7 @@ module.exports = {
|
||||||
directorySize
|
directorySize
|
||||||
}
|
}
|
||||||
|
|
||||||
function getFile(req, res) {
|
function getFile(req, res, next) {
|
||||||
const { key, bucket } = req
|
const { key, bucket } = req
|
||||||
const { format, style } = req.query
|
const { format, style } = req.query
|
||||||
const options = {
|
const options = {
|
||||||
|
@ -61,7 +61,8 @@ function getFile(req, res) {
|
||||||
}
|
}
|
||||||
|
|
||||||
logger.log({ key, bucket, format, style }, 'sending file to response')
|
logger.log({ key, bucket, format, style }, 'sending file to response')
|
||||||
pipeline(fileStream, res)
|
|
||||||
|
pipeline(fileStream, res, next)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue