Merge pull request #1924 from overleaf/ta-full-error

Don't Callback with String

GitOrigin-RevId: 82e3efb055ef197d95ff9c8a876bee0d6a0327a3
This commit is contained in:
Timothée Alby
2019-07-01 15:54:23 +02:00
committed by sharelatex
parent c86910a5ef
commit b1e8cb9cf0
13 changed files with 78 additions and 33 deletions

View File

@@ -651,7 +651,7 @@ module.exports = ProjectEntityMongoUpdateHandler = self = {
'project too big, stopping insertions'
)
CooldownManager.putProjectOnCooldown(project._id)
return callback('project_has_to_many_files')
return callback(new Error('project_has_to_many_files'))
}
return ProjectLocator.findElement(