Let curl show errors when something fails

This commit is contained in:
Andrea Bedini 2023-10-13 13:18:50 +08:00
parent cbd0c5da8f
commit b8d863daab

View File

@ -89,6 +89,8 @@ runCurl uri path etagFile = do
[ "curl"
, -- Silent or quiet mode. Do not show progress meter or error messages. Makes Curl mute.
"--silent"
, -- ... but still show errors
"--show-error"
, -- Fail fast with no output at all on server errors.
"--fail"
, -- If the server reports that the requested page has moved to a different location this