make --json-error-messages capture url download errors
authorJoey Hess <joeyh@joeyh.name>
Tue, 12 Nov 2019 17:33:41 +0000 (13:33 -0400)
committerJoey Hess <joeyh@joeyh.name>
Tue, 12 Nov 2019 17:52:38 +0000 (13:52 -0400)
commit890330f0fe15ad81e3a1ad2ff92d6b8e51027e40
tree1d66f5809f0a308d938268386fa294945a3530ab
parent99536e3a0bae7f4dcd7c7379036090266c396169
make --json-error-messages capture url download errors

Convert Utility.Url to return Either String so the error message can be
displated in the annex monad and so captured.

(When curl is used, its errors are still not caught.)
16 files changed:
Annex/Content.hs
Annex/Url.hs
Annex/YoutubeDl.hs
Assistant/Restart.hs
Assistant/Upgrade.hs
Assistant/WebApp/Configurators/IA.hs
CHANGELOG
Command/AddUrl.hs
Command/ImportFeed.hs
Remote/BitTorrent.hs
Remote/External.hs
Remote/Git.hs
Remote/S3.hs
Remote/Web.hs
Utility/Url.hs
doc/bugs/error_message_in_addurl_is_not_channeled_into_json_record_with_--json-error-messages.mdwn