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

Assert statements need to be more verbose #6

Open
pmelchior opened this issue Jul 8, 2017 · 0 comments
Open

Assert statements need to be more verbose #6

pmelchior opened this issue Jul 8, 2017 · 0 comments

Comments

@pmelchior
Copy link
Owner

As is the asserts, e.g. for number of constraints in GLMM, tell if something isn't right, but they leave the user guessing what has caused the problem.

Instead we should issue, at the very least, the condition that is being tested and why it isn't met. While we're at it we should replace the asserts with proper exceptions so that they cannot be optimized away.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant