Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
go: return a bad magic error in check when parsing summary (foxglove#…
…1206) ### Changelog - Changed: when attempting to read a corrupt MCAP using using the index, the reader will return an ErrBadMagic instance rather than a bare Error. ### Docs None. ### Description it's useful to be able to tell this error apart from errors that might result from i/o, but right now there is no simple way to determine this using `errors.Is`. This PR gives the error a publicly known type, so that callers can check for it. <!-- In addition to unit tests, describe any manual testing you did to validate this change. --> <table><tr><th>Before</th><th>After</th></tr><tr><td> <!--before content goes here--> </td><td> <!--after content goes here--> </td></tr></table> <!-- If necessary, link relevant Linear or Github issues. Use `Fixes: foxglove/repo#1234` to auto-close the Github issue or Fixes: FG-### for Linear isses. -->
- Loading branch information