From 455fdaaad2c6d465cd49e3419aff24e4510ec885 Mon Sep 17 00:00:00 2001 From: Onur Temizkan Date: Wed, 27 Sep 2023 14:59:54 +0100 Subject: [PATCH] fix(remix): Fix `request` arg in `handleError` template. (#469) --- CHANGELOG.md | 2 +- src/remix/templates.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 92bbcba1..d78cedd6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,7 @@ ## Unreleased fix(remix): Use captureRemixServerException inside handleError. (#466) - +fix(remix): Fix `request` arg in `handleError` template. (#469) ## 3.14.1 ref(sveltekit): Add log for successful Vite plugin insertion (#465) diff --git a/src/remix/templates.ts b/src/remix/templates.ts index 201b29b7..f52b7452 100644 --- a/src/remix/templates.ts +++ b/src/remix/templates.ts @@ -6,6 +6,6 @@ export const ERROR_BOUNDARY_TEMPLATE_V2 = `const ErrorBoundary = () => { `; export const HANDLE_ERROR_TEMPLATE_V2 = `function handleError(error, { request }) { - Sentry.captureRemixServerException(error, 'remix.server', { request }); + Sentry.captureRemixServerException(error, 'remix.server', request); } `;