mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-08 07:27:43 +00:00
add error to failed org creation
This commit is contained in:
@@ -57,7 +57,7 @@ const createOrganization = async ({
|
|||||||
} catch (err) {
|
} catch (err) {
|
||||||
Sentry.setUser({ email });
|
Sentry.setUser({ email });
|
||||||
Sentry.captureException(err);
|
Sentry.captureException(err);
|
||||||
throw new Error('Failed to create organization');
|
throw new Error(`Failed to create organization [err=${err}]`);
|
||||||
}
|
}
|
||||||
|
|
||||||
return organization;
|
return organization;
|
||||||
|
|||||||
Reference in New Issue
Block a user