diff --git a/src/goose.rs b/src/goose.rs index 5f951d5f..ac234a5a 100644 --- a/src/goose.rs +++ b/src/goose.rs @@ -433,6 +433,13 @@ impl From for TransactionError { } } +/// Auto-convert Reqwest errors to boxed TransactionError. +impl From for Box { + fn from(value: reqwest::Error) -> Self { + Box::new(TransactionError::Reqwest(value)) + } +} + /// Auto-convert Url errors. impl From for TransactionError { fn from(err: url::ParseError) -> TransactionError {