The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Update text-fetcher.ts
Tim Wilsone4ab2461c0b8
diff --git a/packages/utils/src/functions/text-fetcher.ts b/packages/utils/src/functions/text-fetcher.tsindex dc17e629fb..7720043404 100644--- a/packages/utils/src/functions/text-fetcher.ts+++ b/packages/utils/src/functions/text-fetcher.ts@@ -15,7 +15,7 @@ export async function textFetcher(if (!res.ok) {let message = "An error occurred while fetching the data.";try {- message = (await res.json())?.error?.message;+ message = (await res.json())?.error?.message || message;} catch (e) {}const error = new Error(message) as SWRError;error.info = message;