Merge pull request #2622 from Infisical/daniel/error-context

feat: more contextual not found errors
This commit is contained in:
Maidul Islam
2024-10-21 19:09:12 -04:00
committed by GitHub
75 changed files with 925 additions and 538 deletions
+1 -1
View File
@@ -183,7 +183,7 @@ export const scimServiceFactory = ({
const deleteScimToken = async ({ scimTokenId, actor, actorId, actorAuthMethod, actorOrgId }: TDeleteScimTokenDTO) => {
let scimToken = await scimDAL.findById(scimTokenId);
if (!scimToken) throw new NotFoundError({ message: "Failed to find SCIM token to delete" });
if (!scimToken) throw new NotFoundError({ message: `SCIM token with ID '${scimTokenId}' not found` });
const { permission } = await permissionService.getOrgPermission(
actor,