|
|
@@ -43,7 +43,7 @@ impl Pod5 {
|
|
|
///
|
|
|
/// This loads the metadata using `Pod5Info::from_pod5` and fills the
|
|
|
/// corresponding fields in `Pod5`.
|
|
|
- pub fn from_path<P: AsRef<Path>>(path: P) -> std::io::Result<Self> {
|
|
|
+ pub fn from_path<P: AsRef<Path>>(path: P) -> anyhow::Result<Self> {
|
|
|
let path_ref = path.as_ref();
|
|
|
let path_str = path_ref.to_str().ok_or_else(|| {
|
|
|
anyhow::anyhow!("Path contains invalid UTF-8: {}", path_ref.display())
|