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

Improve error reporting when reading the config. #168

Closed
wants to merge 2 commits into from

Conversation

robewald
Copy link

@robewald robewald commented Jan 9, 2015

It takes a while to figure out why you get an exception, when you have a syntax error in your config. This patch gives a better indication where there is a problem.

@d12frosted
Copy link
Contributor

Looks pretty useful. Hope to see it in master.

break;
}
}
Environment.Exit(1);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could just throw the error here?

@nosami
Copy link
Contributor

nosami commented Jan 13, 2015

indentation is all wrong :)

* Improve variable naming
* Fix indentation
* Fix missing addition
* Describe reason for using Exit() instead of throw.
@robewald
Copy link
Author

robewald commented Feb 2, 2015

@nosami, please check out the updated pull request.

@robewald robewald closed this Mar 3, 2015
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.

3 participants