Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

contrib: Use return instead of os.Exit(1) in analyze-local-images #118

Merged
merged 1 commit into from
Mar 25, 2016

Conversation

Quentin-M
Copy link
Contributor

In order to cleanup properly the allocated resources (defer).
Note that we still use os.Exit(1) for command line errors.

Fixes #117

@Quentin-M
Copy link
Contributor Author

PTAL

@jzelinskie jzelinskie added area/dev tooling related to tools used by developers kind/bug things are not as they seem lacking/review needs to be reviewed by a maintainer component/contrib labels Mar 24, 2016
@jzelinskie
Copy link
Contributor

Ideally the program should exit non-zero on failure. You should pull out everything that isn't flags into a function and let it return an error, we can get a proper exit code.

@jzelinskie jzelinskie added reviewed/needs rework will be closed if review not addressed and removed lacking/review needs to be reviewed by a maintainer labels Mar 24, 2016
In order to cleanup properly the allocated resources (`defer`).

Fixes #117
@Quentin-M Quentin-M added lacking/review needs to be reviewed by a maintainer and removed reviewed/needs rework will be closed if review not addressed labels Mar 24, 2016
@Quentin-M
Copy link
Contributor Author

PTAL

@jzelinskie
Copy link
Contributor

LGTM

@jzelinskie jzelinskie added reviewed/lgtm and removed lacking/review needs to be reviewed by a maintainer labels Mar 25, 2016
@jzelinskie jzelinskie merged commit 1a69523 into master Mar 25, 2016
@jzelinskie jzelinskie deleted the cleanup_contrib branch March 25, 2016 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/dev tooling related to tools used by developers kind/bug things are not as they seem
Development

Successfully merging this pull request may close these issues.

None yet

2 participants