Skip to content
Snippets Groups Projects
Commit 61ff7d73 authored by Rhys Arkins's avatar Rhys Arkins
Browse files

logs(github): don’t log full err when 404

parent 6c5da6db
No related branches found
No related tags found
No related merge requests found
...@@ -125,7 +125,11 @@ export function handleGotError( ...@@ -125,7 +125,11 @@ export function handleGotError(
logger.debug({ err }, '422 Error thrown from GitHub'); logger.debug({ err }, '422 Error thrown from GitHub');
throw new Error(PLATFORM_FAILURE); 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; throw err;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment