error to span