mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-16 20:21:54 +00:00
also log out lines in error message
This commit is contained in:
parent
dbfe5ac712
commit
8bd0df3530
1 changed files with 2 additions and 2 deletions
|
@ -68,7 +68,7 @@ module.exports = DocArchive =
|
|||
logger.err err:err, res:res, project_id:project_id, doc_id:doc_id, "something went wrong unarchiving doc from aws"
|
||||
return callback new Errors.NotFoundError("Error in S3 request")
|
||||
if !(lines instanceof Array)
|
||||
logger.err err:err, res:res, project_id:project_id, doc_id:doc_id, "doc lines from aws are not in array format, likely not JSON parsable"
|
||||
logger.err err:err, res:res, project_id:project_id, doc_id:doc_id, lines:lines, "doc lines from aws are not in array format, likely not JSON parsable"
|
||||
return callback(new Error("Error unpacking doc"))
|
||||
MongoManager.upsertIntoDocCollection project_id, doc_id.toString(), {lines}, (err) ->
|
||||
return callback(err) if err?
|
||||
|
@ -90,4 +90,4 @@ module.exports = DocArchive =
|
|||
timeout: thirtySeconds
|
||||
json: content
|
||||
uri:"https://#{settings.docstore.s3.bucket}.s3.amazonaws.com/#{key}"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue