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

Throwing an unknown directive earlier and with more info #73

Merged
merged 2 commits into from
Dec 16, 2018

Conversation

weaverryan
Copy link
Collaborator

Relates to #71 - this solves it in just one case... and it may be that we just need to add this contextual information piece-by-piece.

The if statement was moved because, before, it would find the directive, set it, then only explode LATER. This makes it explode as soon as it finds a directive that it doesn't know about (which allows us to print more contextual information).

@jwage
Copy link
Member

jwage commented Dec 15, 2018

Can we update the test to check the additional information about the file and line the unknown directive was found in?

@jwage jwage added this to the 0.0.2 milestone Dec 15, 2018
@jwage jwage added the Enhancement New feature or request label Dec 15, 2018
@weaverryan
Copy link
Collaborator Author

Updated! There's no existing test where the "Environment" actually contains the filename, unfortunately. So, we can add that - it's just a bit more work - not too familiar with the tests - but let me know :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants