holiman / billy

Very simple datastore
BSD 3-Clause "New" or "Revised" License
55 stars 8 forks source link

shelf: improve error-message on corrupt files #26

Closed holiman closed 6 months ago

holiman commented 6 months ago

Reference: https://github.com/ethereum/go-ethereum/issues/29303#issuecomment-2011358745

This PR adds more detailed error message when data-corruption is encountered, to make it easier to debug/repair externally.

codecov[bot] commented 6 months ago

Codecov Report

Attention: Patch coverage is 90.00000% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 86.74%. Comparing base (2abb0c7) to head (bc74524).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #26 +/- ## ========================================== + Coverage 86.68% 86.74% +0.06% ========================================== Files 5 5 Lines 413 415 +2 ========================================== + Hits 358 360 +2 Misses 41 41 Partials 14 14 ```