Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Update add-app-ach-account.ts

Steven Teyfd5fdb6de680
diff --git a/apps/web/lib/dots/add-app-ach-account.ts b/apps/web/lib/dots/add-app-ach-account.ts
index 6b87f6edae..74edb23f77 100644
--- a/apps/web/lib/dots/add-app-ach-account.ts
+++ b/apps/web/lib/dots/add-app-ach-account.ts
@@ -32,8 +32,9 @@ export const addAppAchAccount = async ({
);
if (!response.ok) {
- console.error(await response.text());
- throw new Error(`Failed to add ACH account to Dots app ${dotsAppId}.`);
+ const error = await response.json();
+ console.error(error);
+ throw new Error(`Failed to connect bank account: ${error.message}`);
}
return schema.parse(await response.json());