Displaying 2 results from an estimated 2 matches for "34507b4a2".
2019 Jan 16
0
[PATCH 4/5] mltools: curl: turn Curl.run to raise exceptions
...uot;, Some url -> Some url
+ | _, _ -> None
+ ) args
+ with Not_found -> s_"(unknown)" in
+ raise (Curl_failed (exitcode, url))
+ );
lines
let to_string { curl; args } =
diff --git a/common/mltools/curl.mli b/common/mltools/curl.mli
index a3e98dc68..34507b4a2 100644
--- a/common/mltools/curl.mli
+++ b/common/mltools/curl.mli
@@ -27,6 +27,9 @@ type proxy =
| SystemProxy (** Use the system settings. *)
| ForcedProxy of string (** The proxy is forced to the specified URL. *)
+exception Curl_failed of (int * string) (* exit code, URL *)
+(...
2019 Jan 16
10
[PATCH 0/5] [RFC] builder: handle unavailable repos
In case a repository of virt-builder references files (e.g. the index)
that cannot be downloaded (network issues, 404, etc) then virt-builder
errors out on this situation. This is not a nice situation, from an user
POV.
This series does some refactoring to allow to better handle downloading
failures, and handle the failures gracefully in virt-builder.
RFC because I'm not yet too convinced