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

fix(router): log helpful error on missing viewport #291

Merged
merged 1 commit into from
Feb 13, 2016

Conversation

jwahyoung
Copy link
Contributor

When a route does not configure all available viewports, the navigation plan will crash. Now, the navigation plan will log a helpful error with the missing viewport and the affected route.

Fixes #241.

@bryanrsmith
Copy link
Contributor

Looks good! I think it just needs some lint cleanup. gulp lint should show you the problems locally.

When a route does not configure all available viewports, the navigation plan will crash. Now, the navigation plan will log a helpful error with the missing viewport and the affected route.

Fixes aurelia#241.
@jwahyoung
Copy link
Contributor Author

@bryanrsmith Yup, I forgot to run that. I've fixed the issue and force pushed the branch. Let me know if there are other issues (specifically, the if (!value) instead of the explicit check if (value === null || value === undefined).

bryanrsmith added a commit that referenced this pull request Feb 13, 2016
fix(router): log helpful error on missing viewport
@bryanrsmith bryanrsmith merged commit 31fd5a0 into aurelia:master Feb 13, 2016
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.

None yet

2 participants