]> git.rkrishnan.org Git - functorrent.git/commitdiff
Handle error cases from the tracker
authorJaseem Abid <jaseemabid@gmail.com>
Sun, 29 Mar 2015 12:24:58 +0000 (17:54 +0530)
committerJaseem Abid <jaseemabid@gmail.com>
Sun, 29 Mar 2015 12:24:58 +0000 (17:54 +0530)
Tracker might reply that the requested torrent is unavailable. Sample
response at `data/debian-7.8.0-amd64-CD-1.iso.error`.

Renamed `getPeerResponse` to `mkPeerResp` and changed it singture to
match other `mk*` functions like `mkMetaInfo`.

Added test cases

New checks made the code one more level deep. Will need a refactor with
the Either Monad.


No differences found