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

refactor: debug log unauthorized integration

parent e0f34cf0
No related branches found
No related tags found
No related merge requests found
...@@ -173,6 +173,7 @@ async function get(path, options, retries = 5) { ...@@ -173,6 +173,7 @@ async function get(path, options, retries = 5) {
err.message && err.message &&
err.message.startsWith('Resource not accessible by integration') err.message.startsWith('Resource not accessible by integration')
) { ) {
logger.debug({ err }, 'Unauthorized');
throw new Error('integration-unauthorized'); throw new Error('integration-unauthorized');
} else if (err.statusCode === 403) { } else if (err.statusCode === 403) {
if (retries > 0) { if (retries > 0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment