IntersectMBO / IntersectMBO/ouroboros-consensus
Improve readability of errors and always include the mount point
- Dominant language
- Haskell
- Stars
- 67
- Forks
- 43
- Avg merge
- 5d 13h
- Merged PRs (30d)
- 43
Description
In https://github.com/input-output-hk/ouroboros-network/issues/305 and https://github.com/input-output-hk/ouroboros-network/pull/1529 this was implemented for `FsError`. However there are other errors like `ImmutableDBError` `ChainDbFailure` `VolatileDBError` which include the FsPath without the mount point. For example a recent error was reported
```
cardano-byron-proxy: UnexpectedError (ParserError (DuplicatedSlot (ByronHash{unByronHash =
AbstractHash 194922fbdfd6060503a0cdce7b1d979a1802fa7b2c023fce59a83e54b982b254})
blocks-170.dat blocks-170.dat))
```
It is hard to realise exactly where this file is.
The error message could also become less cryptic, so that it is easier to interpret for the external user.
Contributor guide
Assessment
This issue has not been assessed yet.