be more specific on video failures
This commit is contained in:
parent
7e83b17b69
commit
fb0e567caf
1 changed files with 2 additions and 1 deletions
|
@ -3,6 +3,7 @@ package ytapi
|
||||||
import (
|
import (
|
||||||
"bufio"
|
"bufio"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
"fmt"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"net/http"
|
"net/http"
|
||||||
"regexp"
|
"regexp"
|
||||||
|
@ -215,7 +216,7 @@ func getVideos(config *sdk.APIConfig, channelID string, videoIDs []string, stopC
|
||||||
Status: "failed",
|
Status: "failed",
|
||||||
FailureReason: err.Error(),
|
FailureReason: err.Error(),
|
||||||
})
|
})
|
||||||
util.SendErrorToSlack("Skipping video: " + errors.FullTrace(err))
|
util.SendErrorToSlack(fmt.Sprintf("Skipping video (%s): %s", videoID, errors.FullTrace(err)))
|
||||||
if errSDK != nil {
|
if errSDK != nil {
|
||||||
return nil, errors.Err(errSDK)
|
return nil, errors.Err(errSDK)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue