fix build with old http-client

This commit is contained in:
Joey Hess 2018-05-10 00:22:23 -04:00
parent e8ffa8d54b
commit 86958fda5d
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -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