summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Network/BitTorrent/Exchange/Message.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Network/BitTorrent/Exchange/Message.hs b/src/Network/BitTorrent/Exchange/Message.hs
index f848f4cb..fee3ad36 100644
--- a/src/Network/BitTorrent/Exchange/Message.hs
+++ b/src/Network/BitTorrent/Exchange/Message.hs
@@ -868,8 +868,8 @@ getMetadata len
868 where 868 where
869 parseError reason = "unable to parse metadata message: " ++ reason 869 parseError reason = "unable to parse metadata message: " ++ reason
870 870
871 parseRes (BS.Fail _ _ _) = fail $ parseError "bdict: possible corrupted" 871 parseRes (BS.Fail _ _ m) = fail $ parseError $ "bdict: " ++ m
872 parseRes (BS.Partial _) = fail $ parseError "bdict: not enough bytes" 872 parseRes (BS.Partial _) = fail $ parseError "bdict: not enough bytes"
873 parseRes (BS.Done piece bvalueBS) 873 parseRes (BS.Done piece bvalueBS)
874 | BS.length piece > metadataPieceSize 874 | BS.length piece > metadataPieceSize
875 = fail "infodict piece: size exceeded limit" 875 = fail "infodict piece: size exceeded limit"