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

Exception handling #49

Closed
edemaine opened this issue Jul 31, 2019 · 0 comments
Closed

Exception handling #49

edemaine opened this issue Jul 31, 2019 · 0 comments

Comments

@edemaine
Copy link
Owner

edemaine commented Jul 31, 2019

As discussed here, if a CoffeeScript/JavaScript tile definition throws an exception, it should probably render as a special "ERROR" SVG (similar to "UNRECOGNIZED", but maybe a different geometry). Of course, it should also report the error on the command line (and maybe also add it as a title attribute so hover can reveal which error happens where?). Also, it should not continue by looking up in the next Mapping. On the other hand, returning null/undefined should encourage looking up in the next Mapping. I think most of this is already the current behavior, but we should document it.

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

1 participant