Skip to content

Improve error message for unsupported (future) version numbers #864

Description

@jorisdral

instance Decode SnapshotVersion where
decode = do
_ <- decodeListLenOf 1
ver <- decodeWord
case ver of
0 -> pure V0
1 -> pure V1
2 -> pure V2
_ -> fail ("Unknown snapshot format version number: " <> show ver)

It could probably say unsupported rather than unknown and have a helpful message about it being a future version

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationenhancementNew feature or requestgood first issueGood for newcomerslsm-treeRelated to the lsm-tree librarypriority: mediumMedium priority

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions