Skip to content

Commit a680576

Browse files
authored
feat: Add TskitError::LibraryError (#342)
BREAKING CHANGE: adds a new enum variant.
1 parent 790c344 commit a680576

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/error.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ pub enum TskitError {
3131
#[from]
3232
value: crate::metadata::MetadataError,
3333
},
34+
/// General error variant
35+
#[error("{}", *.0)]
36+
LibraryError(String),
3437
}
3538

3639
/// Takes the return code from a tskit

0 commit comments

Comments
 (0)