Displaying 3 results from an estimated 3 matches for "curl_fail".
Did you mean:
cur_mail
2019 Jan 16
0
[PATCH 4/5] mltools: curl: turn Curl.run to raise exceptions
Add a new Curl_failed exception, and raise it when Curl.run fails,
instead of exiting directly with error. This allows users of Curl to
handle failed downloads gracefully.
Add wrappers to the "main" functions of virt-builder, virt-v2v, and
virt-v2v-copy-to-local to catch Curl_failed, and show a better mess...
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
2019 Jan 16
0
[PATCH 5/5] builder: ignore repositories with download failures
...| Sources.FormatNative ->
+ Index_parser.get_index ~downloader ~sigchecker source
+ | Sources.FormatSimpleStreams ->
+ Simplestreams_parser.get_index ~downloader ~sigchecker source in
+ Some parsed_index
+ with
+ | Curl.Curl_failed (code, url) ->
+ warning (f_"failed to download ā%sā (code %d), ignoring repository ā%sā")
+ url code source.Sources.name;
+ None
) sources
) in
let index = remove_duplicates index in
--
2.20.1