1
0
Fork 0
mirror of https://github.com/overleaf/overleaf.git synced 2025-04-14 16:13:32 +00:00

improve error reporting

This commit is contained in:
Henry Oswald 2018-08-20 10:12:32 +01:00
parent 0855b51de5
commit f0b927e8e2
2 changed files with 3 additions and 2 deletions

View file

@ -290,7 +290,8 @@ module.exports = CompileManager =
return callback(error) if error?
fs.readFile directory + "/" + file_name + ".wc", "utf-8", (err, stdout) ->
if err?
logger.err err:err, command:command, directory:directory, project_id:project_id, user_id:user_id, "error reading word count output"
#call it node_err so sentry doesn't use random path error as unique id so it can't be ignored
logger.err node_err:err, command:command, directory:directory, project_id:project_id, user_id:user_id, "error reading word count output"
return callback(err)
results = CompileManager._parseWordcountFromOutput(stdout)
logger.log project_id:project_id, user_id:user_id, wordcount: results, "word count results"

View file

@ -214,7 +214,7 @@ module.exports = DockerRunner =
if error?.statusCode == 404
createAndStartContainer()
else if error?
logger.err {container_name: name}, "unable to inspect container to start"
logger.err {container_name: name, error:error}, "unable to inspect container to start"
return callback(error)
else
startExistingContainer()