Display "helpful" error message when code could not be parsed

This commit is contained in:
Jeroen Engels 2017-01-19 22:38:46 +01:00
parent c7de6956be
commit 72c4add26b

View File

@ -88,7 +88,7 @@ tree ast =
ul [] (List.map statement statements)
err ->
div [] [ text <| toString err ]
div [] [ text "Sorry, I could not parse your code. This may be my fault though :/" ]
rules : List (String -> List Types.Error)