Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

add error to failed org creation

Maidul Islam8a49e0817a87
diff --git a/backend/src/helpers/organization.ts b/backend/src/helpers/organization.ts
index 7060b84878..4ba3592deb 100644
--- a/backend/src/helpers/organization.ts
+++ b/backend/src/helpers/organization.ts
@@ -57,7 +57,7 @@ const createOrganization = async ({
} catch (err) {
Sentry.setUser({ email });
Sentry.captureException(err);
- throw new Error('Failed to create organization');
+ throw new Error(`Failed to create organization [err=${err}]`);
}
return organization;