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

return error codes when errors are encountered #70

Merged
merged 1 commit into from
Aug 9, 2020

Conversation

displague
Copy link
Member

Use RunE instead of Run so that errors that are currently only printed are reported as errors to Cobra. This will allow Cobra to emit return codes when errors are encountered.

Errors previously reported as "Client Error" now report a more contextual message "Could not get Thing", accompanied by a more detailed client error.

A few commend blocks and strings were updated to use the correct command name.

Some of these problems and improvements were brought to light in #66. By introducing these changes here, #66 will be easier to review.

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.

None yet

1 participant