X-Git-Url: https://git.rkrishnan.org/?a=blobdiff_plain;f=src%2FFuncTorrent%2FMetainfo.hs;h=93540823fc47a97a6606342c71fa2d7525764f99;hb=ee331360e1f6585f79218c56d73ed7406e9527bf;hp=05c9de571097142b861f88f1fd50e071ca075ca2;hpb=d484812bb4953c6f83cbdce10fd62403947fb8f5;p=functorrent.git diff --git a/src/FuncTorrent/Metainfo.hs b/src/FuncTorrent/Metainfo.hs index 05c9de5..9354082 100644 --- a/src/FuncTorrent/Metainfo.hs +++ b/src/FuncTorrent/Metainfo.hs @@ -129,5 +129,6 @@ getAnnounceList (Just (Bdict _)) = [] torrentToMetainfo :: ByteString -> Either String Metainfo torrentToMetainfo s = case decode s of - Right d -> mkMetaInfo d - Left e -> Left $ show e + Right d -> mkMetaInfo d + Left e -> Left (show "Cannot parse the torrent file: " ++ show e) +