deal with error throws from custom render