RenderError func added