diff options
Diffstat (limited to 'cli/http_util.rs')
-rw-r--r-- | cli/http_util.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cli/http_util.rs b/cli/http_util.rs index 5b6274309..437b9355c 100644 --- a/cli/http_util.rs +++ b/cli/http_util.rs @@ -34,8 +34,9 @@ pub fn create_http_client( builder .build() - .map_err(|_| generic_error("Unable to build http client")) + .map_err(|e| generic_error(format!("Unable to build http client: {}", e))) } + /// Construct the next uri based on base uri and location header fragment /// See <https://tools.ietf.org/html/rfc3986#section-4.2> fn resolve_url_from_location(base_url: &Url, location: &str) -> Url { |