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 8ab1dd4 commit 7b79132Copy full SHA for 7b79132
site/src/api/errors.ts
@@ -115,8 +115,9 @@ export const getErrorDetail = (error: unknown): string | undefined => {
115
return error.detail;
116
}
117
118
- // APIErrors that are empty still benefit from checking the developer console
119
- // if no detail is provided. So only use the detail field if it is not empty.
+ // APIErrors that are empty still benefit from checking the developer
+ // console if no detail is provided. So only use the detail field if
120
+ // it is not empty.
121
if (isApiError(error) && error.response.data.detail) {
122
return error.response.data.detail;
123
0 commit comments