From 34f777fb1c43552d2cecb4154f9c0761ddba0ade Mon Sep 17 00:00:00 2001 From: lordwelch Date: Thu, 30 Nov 2017 19:56:16 -0700 Subject: [PATCH] Print read error --- main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 780b4df..baa4f0f 100644 --- a/main.go +++ b/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)