Skip to content

Commit

Permalink
Check maxRetryCOunt value
Browse files Browse the repository at this point in the history
  • Loading branch information
Gijsdeman committed Dec 1, 2023
1 parent 9f4cd72 commit 2895058
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,7 @@ async function getUserDataFromActiveDirectory(): Promise<void> {
'mailPermROInbox', 'mailPermROSent', 'mailPermSOB'],
})).searchEntries as unknown as ActiveDirectoryUser[];
}
console.log(retryCount, maxRetryCount);
if (retryCount === maxRetryCount) throw new Error('Ran into an issue when getting users from Active Directory.');
console.log('Successfully got all users from Active Directory. \n\n');
}
Expand Down

0 comments on commit 2895058

Please sign in to comment.