Remove duplicated on_error(). Make sure Pipeline.error is set.