Skip to content
This repository has been archived by the owner on Dec 17, 2021. It is now read-only.

Commit

Permalink
have failed compiles warn rather than be an error
Browse files Browse the repository at this point in the history
  • Loading branch information
Henry Oswald committed Nov 23, 2018
1 parent f1ab938 commit 49f3b7d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/coffee/CompileController.coffee
Expand Up @@ -33,7 +33,7 @@ module.exports = CompileController =
else
status = "error"
code = 500
logger.error err: error, project_id: request.project_id, "error running compile"
logger.warn err: error, project_id: request.project_id, "error running compile"

else
status = "failure"
Expand All @@ -42,7 +42,7 @@ module.exports = CompileController =
status = "success"

if status == "failure"
logger.err project_id: request.project_id, outputFiles:outputFiles, "project failed to compile successfully, no output.pdf generated"
logger.warn project_id: request.project_id, outputFiles:outputFiles, "project failed to compile successfully, no output.pdf generated"

# log an error if any core files are found
for file in outputFiles
Expand Down
2 changes: 1 addition & 1 deletion test/unit/coffee/CompileControllerTests.coffee
Expand Up @@ -14,7 +14,7 @@ describe "CompileController", ->
clsi:
url: "http://clsi.example.com"
"./ProjectPersistenceManager": @ProjectPersistenceManager = {}
"logger-sharelatex": @logger = { log: sinon.stub(), error: sinon.stub(), err:sinon.stub() }
"logger-sharelatex": @logger = { log: sinon.stub(), error: sinon.stub(), err:sinon.stub(), warn: sinon.stub()}
@Settings.externalUrl = "http://www.example.com"
@req = {}
@res = {}
Expand Down

0 comments on commit 49f3b7d

Please sign in to comment.