From 901ccf5aa841ba9a649115eb4a050633fec4df55 Mon Sep 17 00:00:00 2001 From: Antony Denyer Date: Wed, 8 Jan 2025 15:04:10 +0000 Subject: [PATCH] Add request url to exception payload to enable tracking in sentry --- src/utils.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils.ts b/src/utils.ts index 1fd34882..067632ee 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -200,6 +200,7 @@ export async function handleFetch(request: string, options?: RequestInit) { console.log(`response`, response); throw new Error( `Fetch error:${JSON.stringify({ + request, status: response.status, ...mapKeysToCamel(json), })}`,