From f069da7ac57b312d1729a9a95d5dce5b60bbdf1e Mon Sep 17 00:00:00 2001 From: Rohin Bhargava Date: Tue, 23 Jul 2024 21:13:47 -0400 Subject: [PATCH] add strings to errors --- servers/fdr/src/controllers/docs/v2/getDocsWriteV2Service.ts | 2 +- servers/fdr/src/services/auth/AuthService.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/servers/fdr/src/controllers/docs/v2/getDocsWriteV2Service.ts b/servers/fdr/src/controllers/docs/v2/getDocsWriteV2Service.ts index 0d87f20c1d..74daa85981 100644 --- a/servers/fdr/src/controllers/docs/v2/getDocsWriteV2Service.ts +++ b/servers/fdr/src/controllers/docs/v2/getDocsWriteV2Service.ts @@ -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(); diff --git a/servers/fdr/src/services/auth/AuthService.ts b/servers/fdr/src/services/auth/AuthService.ts index a2456566f8..1508d80bb2 100644 --- a/servers/fdr/src/services/auth/AuthService.ts +++ b/servers/fdr/src/services/auth/AuthService.ts @@ -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"); } }