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