Skip to content

Commit

Permalink
Make empty channel errors more friendly
Browse files Browse the repository at this point in the history
  • Loading branch information
victorjzsun authored Dec 4, 2022
1 parent f35c7d9 commit 6e84e67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sheetScript.gs
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ function getVideoIdsWithLessQueries(channelId, lastTimestamp) {
if (e.details.code !== 404) { // Skip error count if Playlist isn't found, then channel is empty
addError("Cannot search YouTube with playlist id "+uploadsPlaylistId+", ERROR: Message: [" + e.message + "] Details: " + JSON.stringify(e.details));
} else {
Logger.log("Channel "+channelId+" does not have any uploads in "+uploadsPlaylistId+", Failed with error Message: [" + e.message + "] Details: " + JSON.stringify(e.details));
Logger.log("Warning: Channel "+channelId+" does not have any uploads in "+uploadsPlaylistId+", ignore if this is intentional as this will not fail the script. API error details for troubleshooting: " + JSON.stringify(e.details));
}
return [];
}
Expand Down

0 comments on commit 6e84e67

Please sign in to comment.