Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
3 changes: 2 additions & 1 deletion public/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"tableVersionHeader": "Revision",
"noFluxError": "Please install flux to view this component",
"gitOpsTitle": "GitOps",
"kustomizationsTitle": "Kustomizations"
"kustomizationsTitle": "Kustomizations",
"undefinedError": "Something went wrong"
Copy link
Contributor

@lucasgoral lucasgoral May 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As I understand this is displayed when there is no repoErr?.message or kustomizationErr?.message but is it possible to change it to more meaningful message?

},
"ProvidersList": {
"tableNameHeader": "Name",
Expand Down
6 changes: 5 additions & 1 deletion src/components/ControlPlane/FluxList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,11 @@ export default function FluxList() {
if (repoErr || kustomizationErr) {
return (
<IllustratedError
details={repoErr.message || kustomizationErr.message}
details={
repoErr?.message ||
kustomizationErr?.message ||
t('FluxList.undefinedError')
}
title={t('FluxList.noFluxError')}
/>
);
Expand Down
Loading