Skip to content

Commit fbb5f62

Browse files
authored
Merge pull request JanKaul#175 from splitgraph/bubble-reqwest-error
feat: bubble up the entire reqwest error
2 parents b162972 + 2e027a5 commit fbb5f62

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • catalogs/iceberg-rest-catalog/src

catalogs/iceberg-rest-catalog/src/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Error conversion
99
impl<T> From<apis::Error<T>> for Error {
1010
fn from(val: apis::Error<T>) -> Self {
1111
match val {
12-
apis::Error::Reqwest(err) => Error::InvalidFormat(err.to_string()),
12+
apis::Error::Reqwest(err) => Error::External(err.into()),
1313
apis::Error::Serde(err) => Error::JSONSerde(err),
1414
apis::Error::Io(err) => Error::IO(err),
1515
apis::Error::ResponseError(ResponseContent {

0 commit comments

Comments
 (0)