Added error reporting on render