Return an error on failed packages