diff options
| -rw-r--r-- | frontend/src/utils/errors.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/frontend/src/utils/errors.ts b/frontend/src/utils/errors.ts index f77a5e08..da19f810 100644 --- a/frontend/src/utils/errors.ts +++ b/frontend/src/utils/errors.ts @@ -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 { |
