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

better error when config.yml not provided #36

Open
mbacchi opened this issue May 14, 2015 · 0 comments
Open

better error when config.yml not provided #36

mbacchi opened this issue May 14, 2015 · 0 comments

Comments

@mbacchi
Copy link
Collaborator

mbacchi commented May 14, 2015

If 'etc/config.yml' is not present in the current working directory, and '-c PATH-TO-CONFIG' is not provided on the command line, the error is sortof unclear:

IOError: [Errno 2] No such file or directory: 'etc/config.yml'

You realize after a while that a config file is required but it takes a new user some guessing to get there. It should give you a clear error message that a config.yml file is required on the command line or in the CWD.

< viglesias> we can change the default to be:

  1. use -c
  2. if thats not there, check ./etc/config.yml
  3. if thats not there check /etc/calyptos/config.yml

And I propose that the error should make clear the config file is required and not provided.

This can further be improved by adding information in the documentation and the --help ouptut that -c is required, along with -e (if indeed it is required.)

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

No branches or pull requests

1 participant