mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-02 11:22:01 -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?
|
return callback(error) if error?
|
||||||
if 200 <= response.statusCode < 300
|
if 200 <= response.statusCode < 300
|
||||||
callback null, body
|
callback null, body
|
||||||
|
else if response.statusCode == 413
|
||||||
|
callback null, "project-too-large"
|
||||||
else
|
else
|
||||||
error = new Error("CLSI returned non-success code: #{response.statusCode}")
|
error = new Error("CLSI returned non-success code: #{response.statusCode}")
|
||||||
logger.error err: error, project_id: project_id, "CLSI returned failure code"
|
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')"
|
ng-click="hello('compile-timeout')"
|
||||||
) #{translate("start_free_trial")}
|
) #{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")
|
.pdf-logs(ng-show="(pdf.view == 'logs' || pdf.failure) && !pdf.error && !pdf.timeout && !pdf.uncompiled")
|
||||||
|
|
|
@ -32,6 +32,8 @@ define [
|
||||||
$scope.pdf.timedout = true
|
$scope.pdf.timedout = true
|
||||||
else if response.status == "autocompile-backoff"
|
else if response.status == "autocompile-backoff"
|
||||||
$scope.pdf.uncompiled = true
|
$scope.pdf.uncompiled = true
|
||||||
|
else if response.status == "project-too-large"
|
||||||
|
$scope.pdf.projectTooLarge = true
|
||||||
else if response.status == "failure"
|
else if response.status == "failure"
|
||||||
$scope.pdf.failure = true
|
$scope.pdf.failure = true
|
||||||
fetchLogs()
|
fetchLogs()
|
||||||
|
|
Loading…
Reference in a new issue