From fb0e567cafb7a90df1fc25e4bd8cc5e922a402b5 Mon Sep 17 00:00:00 2001 From: Niko Storni Date: Sat, 8 Aug 2020 03:29:57 +0200 Subject: [PATCH] be more specific on video failures --- ytapi/ytapi.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ytapi/ytapi.go b/ytapi/ytapi.go index ddf13bc..f2c61b9 100644 --- a/ytapi/ytapi.go +++ b/ytapi/ytapi.go @@ -3,6 +3,7 @@ package ytapi import ( "bufio" "encoding/json" + "fmt" "io/ioutil" "net/http" "regexp" @@ -215,7 +216,7 @@ func getVideos(config *sdk.APIConfig, channelID string, videoIDs []string, stopC Status: "failed", 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 { return nil, errors.Err(errSDK) }