feat: enhance onboarding
This commit is contained in:
1 parent
ece6757979
commit
775ae0147c
23 files changed
+415
-170
No files matched your search
@@ -411,9 +411,10 @@ export const onboardRouter = createTRPCRouter({
|
||||
throw new TRPCError({ code: "BAD_REQUEST", message: error.message });
|
||||
});
|
||||
if (!result.success) {
|
||||
throw new TRPCError({
|
||||
code: "BAD_REQUEST",
|
||||
message: `Unable to connect to ${integration.name}: ${result.error.message}`,
|
||||
logger.warn("Creating onboarding integration after its connection test failed", {
|
||||
name: integration.name,
|
||||
kind: integration.kind,
|
||||
error: result.error.message,
|
||||
});
|
||||
}
|
||||
}),
|
||||
|
||||
Reference in new issue
Block a user