Use thiserror for error handling with less boilerplate

This commit is contained in:
Steve Cook
2023-02-20 09:41:28 -05:00
parent 01e4f4a126
commit f8b29f37db
135 changed files with 868 additions and 905 deletions

View File

@@ -47,7 +47,7 @@ impl OneDReader for MultiFormatOneDReader {
}
}
Err(Exceptions::notFound)
Err(Exceptions::NOT_FOUND)
}
}
impl MultiFormatOneDReader {
@@ -166,7 +166,7 @@ impl Reader for MultiFormatOneDReader {
Ok(result)
} else {
Err(Exceptions::notFound)
Err(Exceptions::NOT_FOUND)
}
}