add a phantomjs execution status to log if errors happens, e.g. OOM killer kills it (#9644)

fixes #9643
This commit is contained in:
xjewer 2017-10-25 09:14:14 +03:00 committed by Torkel Ödegaard
parent 89a070029f
commit bddebf4c82

View File

@ -121,7 +121,9 @@ func RenderToPng(params *RenderOpts) (string, error) {
done := make(chan error) done := make(chan error)
go func() { go func() {
cmd.Wait() if err := cmd.Wait(); err != nil {
rendererLog.Error("failed to render an image", "error", err)
}
close(done) close(done)
}() }()