Print read error

This commit is contained in:
lordwelch 2017-11-30 19:56:16 -07:00
parent aee1fdd97e
commit 34f777fb1c

View File

@ -61,7 +61,8 @@ func process(torrentFile string) *SceneVideoTorrent {
vt *SceneVideoTorrent = new(SceneVideoTorrent)
)
f, _ := os.OpenFile(torrentFile, os.O_RDONLY, 755)
mt.ReadFile(f)
err := mt.ReadFile(f)
fmt.Println(err)
fmt.Printf("%+v\n", mt)
vt.Torrent = NewTorrent(*mt)
vt.Parse(vt.Name)