Skip to content

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

add error object to log

Maidul Islam88908297f524
diff --git a/backend/src/helpers/signup.ts b/backend/src/helpers/signup.ts
index 4621d1f50c..1ef1219f84 100644
--- a/backend/src/helpers/signup.ts
+++ b/backend/src/helpers/signup.ts
@@ -66,7 +66,7 @@ const checkEmailVerification = async ({
email,
token: code
});
-
+
if (!token) throw new Error('Failed to find email verification token');
} catch (err) {
Sentry.setUser(null);
@@ -116,7 +116,7 @@ const initializeDefaultOrg = async ({
roles: [ADMIN]
});
} catch (err) {
- throw new Error('Failed to initialize default organization and workspace');
+ throw new Error(`Failed to initialize default organization and workspace [err=${err}]`);
}
};