If the snapshot file (of sector builder metadata) was corrupted, the sector builder would panic when initialized.
What's in this PR?
This changeset makes the sector builder return an error (instead of panicking) if its snapshot file exists and is corrupted. It also adds better error messaging.
Fixes #13
Why does this PR exist?
If the snapshot file (of sector builder metadata) was corrupted, the sector builder would panic when initialized.
What's in this PR?
This changeset makes the sector builder return an error (instead of panicking) if its snapshot file exists and is corrupted. It also adds better error messaging.