diff --git a/src/viddown.go b/src/viddown.go index 0402589..b641b73 100644 --- a/src/viddown.go +++ b/src/viddown.go @@ -137,8 +137,13 @@ func operationHandler() { cmd := exec.Command("youtube-dl", o.URL) cmd.Dir = dir + "/" currentWork[i] = o.URL // Adds the URL to list of current work - cmd.Run() + output, err := cmd.CombinedOutput() log.Print("Finished: " + o.URL) + if err != nil { + log.Print("Failed to download") + log.Print(err) + } + log.Print(string(output)) delete(currentWork, i) // Remove the URL from list of current work // Clean up directory