Details
Details
- Reviewers
- None
- Group Reviewers
hg-reviewers - Commits
- rHG1eaf62a67c1a: rust: better treatment of cargo/rustc errors
rHG5955cf85ed74: rust: better treatment of cargo/rustc errors
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Event Timeline
Comment Actions
+ 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.