Skip to content

Commit

Permalink
chore: if get version return databend_driver::Error::Api with request…
Browse files Browse the repository at this point in the history
… url, should return err
  • Loading branch information
TCeason committed Oct 30, 2024
1 parent 02e4302 commit 1c6dcca
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion cli/src/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,14 @@ impl Session {
return Err(err.into());
}
}
_ => return Err(err.into()),
databend_driver::Error::Api(databend_client::error::Error::Request(
ref resp_err,
)) => {
if resp_err.contains("error sending request for url") {
return Err(err.into());
}
}
_ => {}
}
"".to_string()
}
Expand Down

0 comments on commit 1c6dcca

Please sign in to comment.