mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
call callback when error returned from getign status of file
This commit is contained in:
parent
0a2ce3b869
commit
b24ae77f4c
1 changed files with 1 additions and 0 deletions
|
@ -99,6 +99,7 @@ module.exports =
|
|||
request options, (err, res)->
|
||||
if err?
|
||||
logger.err err:err, res:res, bucketName:bucketName, key:key, "something went wrong checking file in aws"
|
||||
return callback(err)
|
||||
if !res?
|
||||
logger.err err:err, res:res, bucketName:bucketName, key:key, "no response object returned when checking if file exists"
|
||||
err = new Error("no response from s3 #{bucketName} #{key}")
|
||||
|
|
Loading…
Reference in a new issue