Skip to content

validation/util/container: Use ExitError for stderr#564

Merged
zhouhao3 merged 1 commit intoopencontainers:masterfrom
wking:exit-error
Jan 29, 2018
Merged

validation/util/container: Use ExitError for stderr#564
zhouhao3 merged 1 commit intoopencontainers:masterfrom
wking:exit-error

Conversation

@wking
Copy link
Contributor

@wking wking commented Jan 26, 2018

Lean on the stdlib's ExitError instead of passing stderr around separately. This makes it easy to keep all the parts of the error together, without having to worry about whether a particular command may have executed a runtime call.

Lean on the stdlib's ExitError [1] instead of passing stderr around
separately.  This makes it easy to keep all the parts of the error
together, without having to worry about whether a particular command
may have executed a runtime call.

[1]: https://golang.org/pkg/os/exec/#ExitError

Signed-off-by: W. Trevor King <wking@tremily.us>
@liangchenye
Copy link
Member

liangchenye commented Jan 26, 2018

LGTM

Approved with PullApprove

1 similar comment
@zhouhao3
Copy link

zhouhao3 commented Jan 29, 2018

LGTM

Approved with PullApprove

@zhouhao3 zhouhao3 merged commit 25ac68f into opencontainers:master Jan 29, 2018
@wking wking deleted the exit-error branch January 29, 2018 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants