fix build with old http-client
This commit is contained in:
parent
e8ffa8d54b
commit
86958fda5d
1 changed files with 2 additions and 1 deletions
|
@ -322,7 +322,8 @@ download meterupdate url file uo =
|
||||||
_ -> show he
|
_ -> show he
|
||||||
#else
|
#else
|
||||||
let msg = case he of
|
let msg = case he of
|
||||||
StatusCodeException status _ _ -> statusMessage status
|
StatusCodeException status _ _ ->
|
||||||
|
B8.toString (statusMessage status)
|
||||||
_ -> show he
|
_ -> show he
|
||||||
#endif
|
#endif
|
||||||
hPutStrLn stderr $ "download failed: " ++ msg
|
hPutStrLn stderr $ "download failed: " ++ msg
|
||||||
|
|
Loading…
Reference in a new issue