handle error transformations outside genshi