File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ import {
1616 EntraInvitationError ,
1717 EntraPatchError ,
1818 InternalServerError ,
19+ ValidationError ,
1920} from "../../common/errors/index.js" ;
2021import { getSecretValue } from "../plugins/auth.js" ;
2122import { ConfidentialClientApplication } from "@azure/msal-node" ;
@@ -251,9 +252,8 @@ export async function modifyGroup(
251252 const netId = safeEmail . split ( "@" ) [ 0 ] ;
252253 const isPaidMember = checkPaidMembershipFromTable ( netId , dynamoClient ) ; // we assume users have been provisioned into the table.
253254 if ( ! isPaidMember ) {
254- throw new EntraGroupError ( {
255+ throw new ValidationError ( {
255256 message : `${ netId } is not a paid member. This group requires that all members are paid members.` ,
256- group,
257257 } ) ;
258258 }
259259 }
You can’t perform that action at this time.
0 commit comments