elm / error-message-catalog

A catalog of broken Elm programs / data to improve error messages
BSD 3-Clause "New" or "Revised" License
173 stars 17 forks source link

Non-Optimal error message for GLSL on extrenous space #297

Open uwaces opened 5 years ago

uwaces commented 5 years ago

Using cube example online at https://elm-lang.org/examples/cube you get a less than optimal error message when adding a space before or after the glsl string.

SSCCE

[glsl |

or

[ glsl|
-- UNEXPECTED SYMBOL ------------------------------------------------------ /try

I was not expecting this vertical bar:

163|   [glsl |

             ^
Vertical bars should only appear in custom type declarations. Maybe you want ||
instead?

Additional Details

This is on the live example on the website. Based on the console log when you hit the compile button I think that it is Elm 0.19.1 (not sure might be just Elm 0.19?).