tilemill-project / tilemill

TileMill is a modern map design studio
https://tilemill-project.github.io/tilemill/
BSD 3-Clause "New" or "Revised" License
3.12k stars 527 forks source link

display errors encountered in interactivity template #1620

Open springmeyer opened 12 years ago

springmeyer commented 12 years ago

Currently a syntax error in a template leads to a silent failure in interactivity.

For example, an error like:

Which can be quite common when copy/pasting from the provided tokens, causes only console errors:

[tilemill] Tag "{{" was not closed properly
[tilemill]     at http://localhost:20009/assets/tilemill/js/vendor.js:4466

Interestingly tilemill still produces a valid grid.json uri endpoint that returns functional grids, but the client error appears to silently prevent any grids from being requested, so even if some of the template is valid no interactivity is shown.

springmeyer commented 12 years ago

another user hit this http://support.mapbox.com/discussions/tilemill/1868-help-with-tooltips-in-csv-file.

The problem is the lack of UI errors.