]> Sergey Matveev's repositories - btrtrc.git/blobdiff - spec.go
Add error return value to metainfo.MetaInfo.UnmarshalInfo
[btrtrc.git] / spec.go
diff --git a/spec.go b/spec.go
index e6b58d8c11c32fd94111fd8bd90b7464900067a4..5dbd472bda965b5dbffed780ecefa3a456d13a3a 100644 (file)
--- a/spec.go
+++ b/spec.go
@@ -34,7 +34,7 @@ func TorrentSpecFromMagnetURI(uri string) (spec *TorrentSpec, err error) {
 }
 
 func TorrentSpecFromMetaInfo(mi *metainfo.MetaInfo) (spec *TorrentSpec) {
-       info := mi.UnmarshalInfo()
+       info, _ := mi.UnmarshalInfo()
        spec = &TorrentSpec{
                Trackers:    mi.AnnounceList,
                InfoBytes:   mi.InfoBytes,