Skip to content

Commit

Permalink
Throw an error if the gsuite member query fails (#522)
Browse files Browse the repository at this point in the history
  • Loading branch information
addisonbeck authored Jul 19, 2024
1 parent f730aeb commit 63b06f6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/services/gsuite-directory.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,7 @@ export class GSuiteDirectoryService extends BaseDirectoryService implements IDir
const p = Object.assign({ groupKey: group.id, pageToken: nextPageToken }, this.authParams);
const memRes = await this.service.members.list(p);
if (memRes.status !== 200) {
this.logService.warning("Group member list API failed: " + memRes.statusText);
return entry;
throw new Error("Group member list API failed: " + memRes.statusText);
}

nextPageToken = memRes.data.nextPageToken;
Expand Down

0 comments on commit 63b06f6

Please sign in to comment.