Print wget error
This commit is contained in:
parent
2faca86315
commit
3700e49060
4
main.go
4
main.go
@ -42,8 +42,10 @@ func main() {
|
||||
torrentName = filepath.Base(url)
|
||||
torrentPath = filepath.Join(unselectedDir, torrentName)
|
||||
cmd := exec.Command("wget", url, "-o", torrentPath)
|
||||
if cmd.Run() != nil {
|
||||
err := cmd.Run()
|
||||
if err != nil {
|
||||
fmt.Println("url failed: ", url)
|
||||
fmt.Println(err)
|
||||
continue
|
||||
}
|
||||
process(torrentPath)
|
||||
|
Loading…
Reference in New Issue
Block a user