D5435: rust: better treatment of cargo/rustc errors

Yuya Nishihara yuya at tcha.org
Sat Dec 15 22:01:26 EST 2018


> +        cargocmd = ['cargo', 'build', '-vv', '--release']
> +        try:
> +            subprocess.check_call(cargocmd, env=env, cwd=self.rustsrcdir)
> +        except OSError as exc:
> +            if exc.errno == os.errno.ENOENT:

Added `import errno` to not abuse `os.errno`. I don't think it's a re-exported
module.


More information about the Mercurial-devel mailing list