Print open error

This commit is contained in:
lordwelch 2017-11-30 20:03:20 -07:00
parent 34f777fb1c
commit bf7d9e95b7

View File

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