Convert failures into errors