diff options
| author | AAGaming <aagaming@riseup.net> | 2024-08-21 14:40:42 -0400 |
|---|---|---|
| committer | AAGaming <aagaming@riseup.net> | 2024-08-21 14:40:42 -0400 |
| commit | 927f912eb353ecb347b8cfd6ecad3c49651039c1 (patch) | |
| tree | 5f34fb929e2d149e4cf9b0b508d2047d7c636191 | |
| parent | 7c9b68c1ddada6d978ecf8f0d0e274580e72d842 (diff) | |
| download | decky-loader-927f912eb353ecb347b8cfd6ecad3c49651039c1.tar.gz decky-loader-927f912eb353ecb347b8cfd6ecad3c49651039c1.zip | |
lint
| -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 { |
