mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Handle potential error before calling LocalFileWriter.writeStream
.
This commit is contained in:
parent
a6fff2d4e4
commit
fcfc595c35
1 changed files with 2 additions and 0 deletions
|
@ -81,4 +81,6 @@ module.exports =
|
||||||
|
|
||||||
_writeS3FileToDisk: (bucket, key, opts, callback)->
|
_writeS3FileToDisk: (bucket, key, opts, callback)->
|
||||||
PersistorManager.getFileStream bucket, key, opts, (err, fileStream)->
|
PersistorManager.getFileStream bucket, key, opts, (err, fileStream)->
|
||||||
|
if err?
|
||||||
|
return callback(err)
|
||||||
LocalFileWriter.writeStream fileStream, key, callback
|
LocalFileWriter.writeStream fileStream, key, callback
|
||||||
|
|
Loading…
Reference in a new issue