I think we should make some kind of check on the error code before raising this.