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

errors should provide relevant runtime context #1013

Closed
timotheecour opened this issue Dec 9, 2016 · 1 comment
Closed

errors should provide relevant runtime context #1013

timotheecour opened this issue Dec 9, 2016 · 1 comment

Comments

@timotheecour
Copy link

eg:
assert(!rhs.absolute, "Trying to append absolute path);
is impossible to act upon.
=>
assert(!rhs.absolute, rhs.toString);
is less to type and much more useful; the remaining explanation is less important.

@timotheecour timotheecour changed the title errors should provide context errors should provide relevant runtime context Dec 9, 2016
@WebFreak001
Copy link
Member

this has been added to the compilers, can be used using dflags "-checkaction=context"

There is an issue open to make this a build option: #2296

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

2 participants