better error message for render exceptions