Print error message in renderer
Merge pull request #3090 from alfredxing/fix-error-output