Skip to content

[TM-6] Make parser errors more human readable

Roman Melnikov requested to merge rvem/tm6-custom-parser-error-handling into master

Description

Problem: errors that are being reported by parser are bad.

Solution: use errorBundlePretty in Show instance of ParserException' so it will be used in throwM`. Also make type for custom exception and use it to report if incorrect type was parsed

Related issue(s)

https://issues.serokell.io/issue/TM-6

Checklist for your Merge Request

Related changes (conditional)

  • Tests

    • If I added new functionality, I added tests covering it.
    • If I fixed a bug, I added a regression test to prevent the bug from silently reappearing again.
  • Documentation

    • I checked whether I should update the docs and did so if necessary:

Stylistic guide (mandatory)

Edited by Roman Melnikov

Merge request reports