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

Error message improvements #39

Open
4 tasks
thumphries opened this issue Mar 1, 2016 · 1 comment
Open
4 tasks

Error message improvements #39

thumphries opened this issue Mar 1, 2016 · 1 comment

Comments

@thumphries
Copy link
Contributor

This issue will be a checklist for every ambiguous and/or confusing error message BMX spits out.

  • Helper / Function errors on too many / too few arguments are arcane
  • Helper / Function Alternative instance produces misleading messages (just prints the last failed match) - would be nice to handle this, or at least improve nullable/optional
  • Dynamic partial prints the wrong thing when custom context is not a context Type error (expected partial, actually list)
  • Helpers have strict arity requirements, these should be explained in the error message and remaining args printed out
@charleso
Copy link
Contributor

Left "Rendering error: Rendering error:\n  Error applying helper\n    Too many arguments (1 unused)\n\n    In helper 'numberSummary' invoked at line 1, col 10\n    In partial 'modules/number' invoked at line 175, col 20\n    In helper 'each' invoked at line 146, col 14\n    In helper 'if' invoked at line 116, col 6\n\n" /= Right ()

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

2 participants