mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Re-work error checking
This commit is contained in:
parent
d0bbe8beae
commit
ba9477cdb3
1 changed files with 5 additions and 4 deletions
|
@ -11,10 +11,11 @@ module.exports =
|
||||||
timeout: 30 * 1000
|
timeout: 30 * 1000
|
||||||
killSignal: "SIGKILL"
|
killSignal: "SIGKILL"
|
||||||
exec args, opts,(err, stdout, stderr)->
|
exec args, opts,(err, stdout, stderr)->
|
||||||
if err? and err?.signal == 'SIGKILL'
|
if err?
|
||||||
|
if err.signal == 'SIGKILL'
|
||||||
logger.warn {err: err, stderr: stderr, localPath: localPath}, "optimiser timeout reached"
|
logger.warn {err: err, stderr: stderr, localPath: localPath}, "optimiser timeout reached"
|
||||||
err = null
|
err = null
|
||||||
if err?
|
else
|
||||||
logger.err err:err, stderr:stderr, localPath:localPath, "something went wrong converting compressPng"
|
logger.err err:err, stderr:stderr, localPath:localPath, "something went wrong converting compressPng"
|
||||||
else
|
else
|
||||||
logger.log localPath:localPath, "finished compressPng file"
|
logger.log localPath:localPath, "finished compressPng file"
|
||||||
|
|
Loading…
Reference in a new issue