Closed Spaxe closed 4 years ago
I totally agree. Appreciate the PR, thank you!
Longer term in elm-pages
, I've been thinking about having the Err
types have accept a custom type rather than a String. Something like:
type ElmPagesBuildError
= UnexpectedOption { found : String, available : String, additionalInfo : String }
| -- ...
The type might look a little different, and the API. But the basic idea is that the framework could help with presenting these types of errors more intelligently. For example, using fuzzy matching, showing a limited number of options if the list is too long, formatting with colors, or even a custom HTML presentation depending on the context. Could be interesting!
Anyway, something I've been thinking about! 😄
Hello!
I've found it easier in my own project to list all the correct values when I have a typo for the images.
Old message:
New message:
Hope you find this useful.