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.

fix displaying error message

Kiran K91d9489fcb79
diff --git a/apps/web/lib/dots/fetch.ts b/apps/web/lib/dots/fetch.ts
index 0e7686830c..61363dfb31 100644
--- a/apps/web/lib/dots/fetch.ts
+++ b/apps/web/lib/dots/fetch.ts
@@ -30,9 +30,7 @@ export const dotsFetch = async (
if (!response.ok) {
const error = await response.json();
- console.error(
- `Dots API error: ${response.status} ${response.statusText}. ${response.status === 404 ? "" : JSON.stringify(error)}`,
- );
+ console.error("Dots API error", error);
throw new DubApiError({
code: httpStatusToErrorCode[response.status],