add error to failed org creation

This commit is contained in:
Maidul Islam
2023-01-25 21:58:53 -08:00
parent 88908297f5
commit 8a49e0817a
+1 -1
View File
@@ -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;