@@ -51,13 +51,19 @@ async def validate_invitation_url(
5151 """
5252 if current_product .group_id is None :
5353 raise InvitationsServiceUnavailableError (
54- reason = "Current product is not configured for invitations"
54+ reason = "Current product is not configured for invitations" ,
55+ current_product = current_product ,
56+ guest_email = guest_email ,
5557 )
5658
5759 try :
5860 valid_url = TypeAdapter (AnyHttpUrl ).validate_python (invitation_url )
5961 except ValidationError as err :
60- raise InvalidInvitationError (reason = MSG_INVALID_INVITATION_URL ) from err
62+ raise InvalidInvitationError (
63+ reason = MSG_INVALID_INVITATION_URL ,
64+ current_product = current_product ,
65+ guest_email = guest_email ,
66+ ) from err
6167
6268 # check with service
6369 invitation : ApiInvitationContent = await get_invitations_service_api (
@@ -67,7 +73,10 @@ async def validate_invitation_url(
6773 # check email
6874 if invitation .guest .lower () != guest_email .lower ():
6975 raise InvalidInvitationError (
70- reason = "This invitation was issued for a different email"
76+ reason = "This invitation was issued for a different email" ,
77+ current_product = current_product ,
78+ guest_email = guest_email ,
79+ invitation = invitation ,
7180 )
7281
7382 # check product
0 commit comments