mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Add missing error handler
This commit is contained in:
parent
c827407a99
commit
bad9a0282d
1 changed files with 2 additions and 0 deletions
|
@ -43,6 +43,8 @@ module.exports = FileStoreHandler =
|
||||||
uri: "#{@_buildUrl(project_id, file_id)}#{queryString}"
|
uri: "#{@_buildUrl(project_id, file_id)}#{queryString}"
|
||||||
timeout:fiveMinsInMs
|
timeout:fiveMinsInMs
|
||||||
readStream = request(opts)
|
readStream = request(opts)
|
||||||
|
readStream.on "error", (err) ->
|
||||||
|
logger.err {err, project_id, file_id, query}, "error in file stream"
|
||||||
callback(null, readStream)
|
callback(null, readStream)
|
||||||
|
|
||||||
deleteFile: (project_id, file_id, callback)->
|
deleteFile: (project_id, file_id, callback)->
|
||||||
|
|
Loading…
Reference in a new issue