diff options
author | Joey Hess <joeyh@joeyh.name> | 2017-02-20 15:44:43 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2017-02-20 15:44:43 -0400 |
commit | 5099cc747ac8c6b2d9a873c4a7051c60b8541c41 (patch) | |
tree | 0dbd718596ed09223fd5ff168161176976c8aec1 | |
parent | 195c77f37e6d2bdbbe00234cc62b44fad641477e (diff) |
update
-rw-r--r-- | doc/todo/more_of_diagnostic_information_in_case_of_failures_into_returned_json/comment_2_82b851629c695084cbf62e2b636bcc91._comment | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/doc/todo/more_of_diagnostic_information_in_case_of_failures_into_returned_json/comment_2_82b851629c695084cbf62e2b636bcc91._comment b/doc/todo/more_of_diagnostic_information_in_case_of_failures_into_returned_json/comment_2_82b851629c695084cbf62e2b636bcc91._comment index b7c65c51b..40935530e 100644 --- a/doc/todo/more_of_diagnostic_information_in_case_of_failures_into_returned_json/comment_2_82b851629c695084cbf62e2b636bcc91._comment +++ b/doc/todo/more_of_diagnostic_information_in_case_of_failures_into_returned_json/comment_2_82b851629c695084cbf62e2b636bcc91._comment @@ -6,13 +6,15 @@ In general, the --json output does include a "note" with any available message about why an operation failed. -Since wget outputs HTTP errors to stdout, there's no way to capture the actual -message for json, and so swiching to wget -nv won't improve the json. -(curl also outputs HTTP errors to stdout too, so it's no better) +Since wget outputs HTTP errors to stdout, there's no way to capture +the actual message for json, and so swiching to wget -nv won't improve +the json, since in json mode wget is run with -q. -Short of using a HTTP library for url downloads in --json mode, -I don't see a way to fix this. It would not be hard to use a HTTP library -and propagate the HTTP errors into the json "note", but it might be hard to -get resumption of partial downloads to work as well with a HTTP library as -it works with wget. +It would not be hard to use a HTTP library and propagate the HTTP errors +into the json "note", but it might be hard to get resumption of partial +downloads to work as well with a HTTP library as it works with wget/curl. + +What we could do is use curl in preference to wget in json mode; +curl -s -S avoids all progress etc output and displays the +http errors to stderr. ""]] |