Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.
chore: reorder error
Faisal Amir6acdf22e4142
diff --git a/web-app/src/containers/dialogs/LoadModelErrorDialog.tsx b/web-app/src/containers/dialogs/LoadModelErrorDialog.tsxindex c3e4f95aa..410305c46 100644--- a/web-app/src/containers/dialogs/LoadModelErrorDialog.tsx+++ b/web-app/src/containers/dialogs/LoadModelErrorDialog.tsx@@ -37,16 +37,6 @@ export default function LoadModelErrorDialog() {if (typeof error === 'string') return error- if (typeof error === 'object') {- const errorObj = error as {- code?: string- message: string- details?: string- }-- return errorObj.message- }-if (typeof error === 'object' && 'code' in error && 'message' in error) {const errorObj = error as {code?: string@@ -62,6 +52,16 @@ export default function LoadModelErrorDialog() {return copyText}+ if (typeof error === 'object') {+ const errorObj = error as {+ code?: string+ message: string+ details?: string+ }++ return errorObj.message+ }+return JSON.stringify(error)}