]> git.rkrishnan.org Git - functorrent.git/blobdiff - src/FuncTorrent/Metainfo.hs
metainfo: remove a redundant "show"
[functorrent.git] / src / FuncTorrent / Metainfo.hs
index 05c9de571097142b861f88f1fd50e071ca075ca2..bec28b84dd172e61c4c69846e8b801294990ab3e 100644 (file)
@@ -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 ("Cannot parse the torrent file: " ++ show e)
+