Displaying 2 results from an estimated 2 matches for "c7cbcaedb".
2019 Jan 16
0
[PATCH 4/5] mltools: curl: turn Curl.run to raise exceptions
...ilder.ml | 9 ++++++++-
common/mltools/curl.ml | 15 ++++++++++++++-
common/mltools/curl.mli | 3 +++
v2v/copy_to_local.ml | 9 ++++++++-
v2v/v2v.ml | 9 ++++++++-
5 files changed, 41 insertions(+), 4 deletions(-)
diff --git a/builder/builder.ml b/builder/builder.ml
index c7cbcaedb..651db83f0 100644
--- a/builder/builder.ml
+++ b/builder/builder.ml
@@ -791,4 +791,11 @@ let main () =
Option.may print_string stats
-let () = run_main_and_handle_errors main
+let () =
+ let main_wrap () =
+ try main ()
+ with
+ | Curl.Curl_failed (code, url) ->
+ error (f_...
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