We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0f36dc commit 98bdb6bCopy full SHA for 98bdb6b
site/src/api/errors.ts
@@ -115,10 +115,6 @@ export const getErrorDetail = (error: unknown): string | undefined => {
115
return error.detail;
116
}
117
118
- if (error instanceof Error) {
119
- return "Please check the developer console for more details.";
120
- }
121
-
122
if (isApiError(error)) {
123
return error.response.data.detail;
124
@@ -127,6 +123,10 @@ export const getErrorDetail = (error: unknown): string | undefined => {
127
128
129
125
126
+ if (error instanceof Error) {
+ return "Please check the developer console for more details.";
+ }
+
130
return undefined;
131
};
132
0 commit comments