mikedilger / email-format

Email data structure and builder for streaming emails
Apache License 2.0
17 stars 5 forks source link

improve errors generated #12

Closed mikedilger closed 7 years ago

mikedilger commented 7 years ago

A generic ParseError is not sufficient for informing users why their email is invalid.

In most cases a NotFound variant gives too little information.

mikedilger commented 7 years ago

possibly include a character index where the parsing failed.

mikedilger commented 7 years ago

Did a lot of work on master. Descriptions are longer. Descriptions include the type of content that was sought. Some errors wrap deeper errors so you can see a chain of causes. Invalid body characters are described better. With usage, we shall see if this is sufficient and helpful.