summaryrefslogtreecommitdiff
path: root/frontend/src/utils
diff options
context:
space:
mode:
authorAAGaming <aagaming@riseup.net>2024-08-21 14:40:42 -0400
committerAAGaming <aagaming@riseup.net>2024-08-21 14:40:42 -0400
commit927f912eb353ecb347b8cfd6ecad3c49651039c1 (patch)
tree5f34fb929e2d149e4cf9b0b508d2047d7c636191 /frontend/src/utils
parent7c9b68c1ddada6d978ecf8f0d0e274580e72d842 (diff)
downloaddecky-loader-927f912eb353ecb347b8cfd6ecad3c49651039c1.tar.gz
decky-loader-927f912eb353ecb347b8cfd6ecad3c49651039c1.zip
lint
Diffstat (limited to 'frontend/src/utils')
-rw-r--r--frontend/src/utils/errors.ts4
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 {