mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Return callback with error if an error is emitted on filestore stream.
This commit is contained in:
parent
b237a022c3
commit
aa301dacb9
1 changed files with 1 additions and 0 deletions
|
@ -45,6 +45,7 @@ module.exports = FileStoreHandler =
|
|||
readStream = request(opts)
|
||||
readStream.on "error", (err) ->
|
||||
logger.err {err, project_id, file_id, query}, "error in file stream"
|
||||
return callback(err)
|
||||
callback(null, readStream)
|
||||
|
||||
deleteFile: (project_id, file_id, callback)->
|
||||
|
|
Loading…
Reference in a new issue