diff --git a/lib/util/http/github.ts b/lib/util/http/github.ts index 727aadc390d6e6c196b75b03cd6695d092b7253b..8c27a114056e3acf22fc290ac792326976e9f178 100644 --- a/lib/util/http/github.ts +++ b/lib/util/http/github.ts @@ -125,7 +125,11 @@ export function handleGotError( logger.debug({ err }, '422 Error thrown from GitHub'); throw new Error(PLATFORM_FAILURE); } - logger.debug({ err }, 'Unknown error fetching GitHub GraphQL'); + if (err.statusCode === 404) { + logger.debug({ url: err.url }, 'GitHub 404'); + } else { + logger.debug({ err }, 'Unknown GitHub error'); + } throw err; }