make-repo: Fix error code handling.