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

add development warnings for missing data properties #320

Merged
merged 1 commit into from
Mar 1, 2017
Merged

Conversation

Rich-Harris
Copy link
Member

This makes a start on #13 — it introduces dev: true as an option for adding development warnings, and kicks things off by throwing an error if a template references a property that isn't present on the initial data object (something we can't know until runtime).

We can iterate on the specifics of the error message (e.g. it could include a link to some documentation explaining what the message means, and that you can fix it my initialising with null data), but at least now we have something to work with, and the infrastructure to test it

@Rich-Harris Rich-Harris merged commit a8d1983 into master Mar 1, 2017
@Rich-Harris Rich-Harris deleted the gh-13 branch March 1, 2017 22:38
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.

1 participant