make curl show http errors to stderr
authorJoey Hess <joeyh@joeyh.name>
Mon, 20 Feb 2017 19:59:55 +0000 (15:59 -0400)
committerJoey Hess <joeyh@joeyh.name>
Mon, 20 Feb 2017 20:09:32 +0000 (16:09 -0400)
commit7a0d6d81a02242b5c8f34ed641113ac241166c0d
tree80e4abcc93023f348448bdb070d6bf4f9b0988c8
parent07de7c2c762f52bc1b77d1cd2d23c8a6d76ccad5
make curl show http errors to stderr

* Run curl with -S, so HTTP errors are displayed, even when
  it's otherwise silent.
* When downloading in --json or --quiet mode, use curl in preference
  to wget, since curl is able to display only errors to stderr, unlike
  wget.

This does mean that downloadQuiet is only silent on stdout, not necessarily
on stderr, which affects a couple other calls of it. For example,
downloading the .git/config of a http remote may show an error message now,
perhaps with slightly suboptimal formatting due to other output.
CHANGELOG
Utility/Url.hs
doc/todo/more_of_diagnostic_information_in_case_of_failures_into_returned_json.mdwn
doc/todo/more_of_diagnostic_information_in_case_of_failures_into_returned_json/comment_2_82b851629c695084cbf62e2b636bcc91._comment