This commit is contained in:
AAGaming
2024-08-21 14:40:42 -04:00
parent 7c9b68c1dd
commit 927f912eb3
+3 -1
View File
@@ -23,7 +23,9 @@ export function getLikelyErrorSourceFromValveError(error: ValveError): ErrorSour
export function getLikelyErrorSourceFromValveReactError(error: ValveReactErrorInfo): ErrorSource {
// get the first 10 lines of the componentStack to avoid matching against the decky router wrapper for any route errors deeper in the tree
return getLikelyErrorSource(error?.error?.stack + '\n' + error.info.componentStack?.split("\n").slice(0, 8).join("\n"));
return getLikelyErrorSource(
error?.error?.stack + '\n' + error.info.componentStack?.split('\n').slice(0, 8).join('\n'),
);
}
export function getLikelyErrorSource(error?: string): ErrorSource {