From b8d863daab50eb4845ce3e1da1203bc29193d16b Mon Sep 17 00:00:00 2001 From: Andrea Bedini Date: Fri, 13 Oct 2023 13:18:50 +0800 Subject: [PATCH] Let curl show errors when something fails --- app/Foliage/FetchURL.hs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Foliage/FetchURL.hs b/app/Foliage/FetchURL.hs index c368836..71cf2d4 100644 --- a/app/Foliage/FetchURL.hs +++ b/app/Foliage/FetchURL.hs @@ -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