handle render errors