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

add error handling modes #1

Open
flowchartsman opened this issue Mar 11, 2019 · 0 comments
Open

add error handling modes #1

flowchartsman opened this issue Mar 11, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@flowchartsman
Copy link
Owner

flowchartsman commented Mar 11, 2019

Much like package flag, conf should allow the user to select what happens when there's a difficulty getting values for any field or when required values are missing. Probably:

  • return an error
  • print usage and os.Exit(2)
  • panic
@flowchartsman flowchartsman added the enhancement New feature or request label Mar 11, 2019
@flowchartsman flowchartsman changed the title add flag error handling mode add error handling modes Mar 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant