summaryrefslogtreecommitdiff
path: root/Build
diff options
context:
space:
mode:
Diffstat (limited to 'Build')
-rw-r--r--Build/Configure.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/Build/Configure.hs b/Build/Configure.hs
index 0a0e87c3a..4498838a1 100644
--- a/Build/Configure.hs
+++ b/Build/Configure.hs
@@ -15,6 +15,7 @@ import Utility.Process
import Utility.SafeCommand
import Utility.ExternalSHA
import Utility.Env
+import Utility.Exception
import qualified Git.Version
import Utility.DottedVersion
@@ -106,7 +107,8 @@ checkWgetQuietProgress = Config "wgetquietprogress" . BoolConfig
<$> getWgetVersion
getWgetVersion :: IO (Maybe DottedVersion)
-getWgetVersion = extract <$> readProcess "wget" ["--version"]
+getWgetVersion = catchDefaultIO Nothing $
+ extract <$> readProcess "wget" ["--version"]
where
extract s = case lines s of
[] -> Nothing