Improve error message for failed rendering