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 fetch.ts

Steven Teyf6746ba22643
diff --git a/apps/web/lib/dots/fetch.ts b/apps/web/lib/dots/fetch.ts
index 99fe636629..7dac9c3106 100644
--- a/apps/web/lib/dots/fetch.ts
+++ b/apps/web/lib/dots/fetch.ts
@@ -21,8 +21,9 @@ export const dotsFetch = async (
});
if (!response.ok) {
+ const error = await response.text();
throw new Error(
- `Dots API error: ${response.status} ${response.statusText}.`,
+ `Dots API error: ${response.status} ${response.statusText}. ${error}`,
);
}