mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
added project to long check from clsi2 (bit of a punt)
This commit is contained in:
parent
0bc76b6d92
commit
fa755c6521
3 changed files with 12 additions and 0 deletions
|
@ -42,6 +42,8 @@ module.exports = ClsiManager =
|
|||
return callback(error) if error?
|
||||
if 200 <= response.statusCode < 300
|
||||
callback null, body
|
||||
else if response.statusCode == 413
|
||||
callback null, "project-too-large"
|
||||
else
|
||||
error = new Error("CLSI returned non-success code: #{response.statusCode}")
|
||||
logger.error err: error, project_id: project_id, "CLSI returned failure code"
|
||||
|
|
|
@ -102,6 +102,14 @@ div.full-size.pdf(ng-controller="PdfController")
|
|||
ng-click="hello('compile-timeout')"
|
||||
) #{translate("start_free_trial")}
|
||||
|
||||
.pdf-errors(ng-show="pdf.projectTooLarge")
|
||||
.alert.alert-danger
|
||||
strong #{translate("project_too_large")}
|
||||
span #{translate("project_too_large_please_reduce")}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
.pdf-logs(ng-show="(pdf.view == 'logs' || pdf.failure) && !pdf.error && !pdf.timeout && !pdf.uncompiled")
|
||||
|
|
|
@ -32,6 +32,8 @@ define [
|
|||
$scope.pdf.timedout = true
|
||||
else if response.status == "autocompile-backoff"
|
||||
$scope.pdf.uncompiled = true
|
||||
else if response.status == "project-too-large"
|
||||
$scope.pdf.projectTooLarge = true
|
||||
else if response.status == "failure"
|
||||
$scope.pdf.failure = true
|
||||
fetchLogs()
|
||||
|
|
Loading…
Reference in a new issue