catch exception checking if url exists when network is disconnected
Leads to better failure message (or possibly fallback to another remote).
This commit is contained in:
parent
2d9ec29154
commit
0d544649d0
1 changed files with 2 additions and 1 deletions
|
@ -118,7 +118,8 @@ checkKey' key us = firsthit us (Right False) $ \u -> do
|
|||
#endif
|
||||
DefaultDownloader -> do
|
||||
headers <- getHttpHeaders
|
||||
Right <$> Url.withUserAgent (Url.checkBoth u' headers $ keySize key)
|
||||
Url.withUserAgent $ catchMsgIO .
|
||||
Url.checkBoth u' headers (keySize key)
|
||||
where
|
||||
firsthit [] miss _ = return miss
|
||||
firsthit (u:rest) _ a = do
|
||||
|
|
Loading…
Add table
Reference in a new issue