#428: improve error information when render failed
Merge pull request #434 from lidaobing/issue_428_2

#428: improves error information when render fails