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
|
||||
#else
|
||||
let msg = case he of
|
||||
StatusCodeException status _ _ -> statusMessage status
|
||||
StatusCodeException status _ _ ->
|
||||
B8.toString (statusMessage status)
|
||||
_ -> show he
|
||||
#endif
|
||||
hPutStrLn stderr $ "download failed: " ++ msg
|
||||
|
|
Loading…
Reference in a new issue