propagate error code correctly after legacy suite failures