RamonMeffert / elm-gossip

A user-friendly web tool for exploring dynamic gossip.
https://r3n.nl/elm-gossip/
GNU General Public License v3.0
3 stars 0 forks source link

Improve error reporting #21

Open RamonMeffert opened 3 years ago

RamonMeffert commented 3 years ago

Instead of the error being just a string, make it a record so the rendering can be improved. Something like:

type alias Error =
    { title : String
    , message : String
    , cause : String
    , advice : String
    }
RamonMeffert commented 3 years ago

Should also have a severity field

RamonMeffert commented 3 years ago
RamonMeffert commented 3 years ago

Note: errors are pretty neat already, it's just that they could be even better

RamonMeffert commented 3 years ago

Errors are good enough generally, but there are a few cases that could use improvement: