From bddebf4c82c16f1f9d29a69e603ffd53f14a5a70 Mon Sep 17 00:00:00 2001 From: xjewer Date: Wed, 25 Oct 2017 09:14:14 +0300 Subject: [PATCH] add a phantomjs execution status to log if errors happens, e.g. OOM killer kills it (#9644) fixes #9643 --- pkg/components/renderer/renderer.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/components/renderer/renderer.go b/pkg/components/renderer/renderer.go index db36054e76d..d5980231f0e 100644 --- a/pkg/components/renderer/renderer.go +++ b/pkg/components/renderer/renderer.go @@ -121,7 +121,9 @@ func RenderToPng(params *RenderOpts) (string, error) { done := make(chan error) go func() { - cmd.Wait() + if err := cmd.Wait(); err != nil { + rendererLog.Error("failed to render an image", "error", err) + } close(done) }()