Skip to content

Commit

Permalink
added more descriptive error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Ajen07 committed May 27, 2024
1 parent cc6e4a0 commit a60dd71
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/techs/techs.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ export class TechsService {
// check if the teamId is in the teams array
const voyageMember = teams.filter((team) => team.teamId === teamId);
if (voyageMember.length === 0) {
throw new BadRequestException("Not a Valid user");
throw new BadRequestException(
"User is not in the specified team, check voyageTeamId or voyageTeamMemberId is correct.",
);
}

return voyageMember[0].memberId;
Expand Down

0 comments on commit a60dd71

Please sign in to comment.