From e52d34b74f8b2fb49fd6e08b59bee07a6134e80e Mon Sep 17 00:00:00 2001 From: EnixCoda Date: Sat, 23 Feb 2019 19:58:46 +0800 Subject: [PATCH] feat: report error with stack --- src/analytics.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/analytics.ts b/src/analytics.ts index 9cde53b..5bdcceb 100644 --- a/src/analytics.ts +++ b/src/analytics.ts @@ -35,6 +35,7 @@ function reportError(error: Error) { if (!IN_PRODUCTION_MODE) return return fetch( `${LOG_ENDPOINT}?${encodeParams({ + stack: error.stack, error: (error && error.message) || error, path: window.location.href, version,