Open suaviloquence opened 2 months ago
it would be helpful to have an
enum Error { // ... Other { message: String, cause: Option<Box<dyn std::error::Error>>, }
and fn Error::custom(String, Option<Box<dyn Error>>) -> Self
fn Error::custom(String, Option<Box<dyn Error>>) -> Self
and macro bail!(f, fmt_args*)
macro bail!(f, fmt_args*)
and an analog to anyhow::context/with_context
anyhow::context/with_context
All errors are converted to the scrapelect_filter_types::Error type, now it would be helpful to add more variants instead of mostly using string errors.
scrapelect_filter_types::Error
it would be helpful to have an
and
fn Error::custom(String, Option<Box<dyn Error>>) -> Self
and
macro bail!(f, fmt_args*)
and an analog to
anyhow::context/with_context