From c36f1985bda3754a52f87757a8fba1c8256ed9b8 Mon Sep 17 00:00:00 2001 From: AAGaming Date: Thu, 27 Jun 2024 00:08:13 -0400 Subject: improve error checking logic --- frontend/src/utils/errors.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'frontend') diff --git a/frontend/src/utils/errors.ts b/frontend/src/utils/errors.ts index 0bf82986..35122ebb 100644 --- a/frontend/src/utils/errors.ts +++ b/frontend/src/utils/errors.ts @@ -22,7 +22,7 @@ export function getLikelyErrorSourceFromValveError(error: ValveError): ErrorSour } export function getLikelyErrorSourceFromValveReactError(error: ValveReactErrorInfo): ErrorSource { - return getLikelyErrorSource(error?.error?.stack); + return getLikelyErrorSource(error?.error?.stack + "\n" + error.info.componentStack); } export function getLikelyErrorSource(error?: string): ErrorSource { -- cgit v1.2.3