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