gix::transport::client::blocking_io::http::reqwest::Remote
errors too late
#923
Labels
acknowledged
an issue is accepted as shortcoming to be fixed
Duplicates
Current behavior 😯
If there is a problem setting up the client, the thread will exit with an error and the channels owned by the thread will be dropped, which will cause panics when the remote tries to be used, such as here.
Expected behavior 🤔
If there is an error setting up the client or other setup issues, I would expect to have a proper error returned from the higher level function (in this case
fetch_only
) rather than a panic, as it would make it much more clear to users what the root cause of the failure is, as well as not (potentially) bring down their entire application.This comment also seems misleading.
Steps to reproduce 🕹
The text was updated successfully, but these errors were encountered: