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

support checking validity of configuration during initialization #65

Open
alecjohnson opened this issue Mar 7, 2014 · 0 comments
Open

Comments

@alecjohnson
Copy link
Contributor

A general principle of maintainable code is that error messages should be issued as soon as the violation of an assumed condition can be efficiently detected.

Currently configuration options are not checked for validity when they are read in, and only a small number of checks are made later on. Tightly and cleanly restricting configuration options allows us to guarantee backward compatibility in how the configuration file drives behavior. We should validate configuration options on startup and immediately exit with an informative error message upon detecting invalid options.

Note that appropriate resolution of this issue assumes that issue #64 is also resolved.

alecjohnson added a commit to alecjohnson/iPic3D that referenced this issue Mar 10, 2014
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