Better error reporting on beforeRender error