Skip to content

Commit

Permalink
add strings to errors
Browse files Browse the repository at this point in the history
  • Loading branch information
RohinBhargava committed Jul 24, 2024
1 parent 3603b65 commit f069da7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export function getDocsWriteV2Service(app: FdrApplication): DocsV2WriteService {
req.body.orgId,
);
if (!hasOwnership) {
throw new FdrAPI.DomainBelongsToAnotherOrgError();
throw new FdrAPI.DomainBelongsToAnotherOrgError("Domain belongs to another org");
}

const docsRegistrationId = uuidv4();
Expand Down
2 changes: 1 addition & 1 deletion servers/fdr/src/services/auth/AuthService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export class AuthServiceImpl implements AuthService {
}
const belongsToOrg = response.body;
if (!belongsToOrg) {
throw new FdrAPI.UserNotInOrgError();
throw new FdrAPI.UserNotInOrgError("User does not belong to organization");
}
}

Expand Down

0 comments on commit f069da7

Please sign in to comment.