Print read error
This commit is contained in:
parent
aee1fdd97e
commit
34f777fb1c
3
main.go
3
main.go
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user