Skip to content

chore: ui error handling should be specific to general #14346

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Aug 19, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix comment length with proper spaces before
  • Loading branch information
Emyrk committed Aug 19, 2024
commit 7b79132797103b35f49ce2df49f0a0f8e1477937
5 changes: 3 additions & 2 deletions site/src/api/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,9 @@ export const getErrorDetail = (error: unknown): string | undefined => {
return error.detail;
}

// 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.
// 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.
if (isApiError(error) && error.response.data.detail) {
return error.response.data.detail;
}
Expand Down
Loading