Replace ErrorOr<void> with error_code.

It was never transporting any value in addition to the error_code.