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