From 6e84e67152d7eb7330736e7b98b079566c4fb1b2 Mon Sep 17 00:00:00 2001 From: Victor Sun Date: Sun, 4 Dec 2022 16:29:51 -0500 Subject: [PATCH] Make empty channel errors more friendly --- sheetScript.gs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sheetScript.gs b/sheetScript.gs index 8b155fc..f9864d6 100644 --- a/sheetScript.gs +++ b/sheetScript.gs @@ -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 []; }