Skip to content

Commit

Permalink
Add StorageError::Other variant
Browse files Browse the repository at this point in the history
  • Loading branch information
LDeakin committed Sep 30, 2023
1 parent b8ee456 commit a6a4f5c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Add array subset iterator tests
- **Breaking**: Remove unvalidated `from(String)` for store key/prefix
- Validate that store prefixes do not start with `/`
- **Breaking**: Add `StorageError::Other` variant

### Fixed
- Fix store prefix to node path conversion and vice versa
Expand Down
3 changes: 3 additions & 0 deletions src/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,9 @@ pub enum StorageError {
/// An invalid byte range.
#[error("invalid byte range {0}")]
InvalidByteRangeError(#[from] InvalidByteRangeError),
/// Any other error.
#[error("{0}")]
Other(String),
}

/// Return the metadata key given a node path.
Expand Down

0 comments on commit a6a4f5c

Please sign in to comment.