gracefully surface FetchErrors
Signed-off-by: Jamie Klassen <jklassen@vmware.com>
This commit is contained in:
@@ -29,7 +29,8 @@ const clustersWithErrorsToErrorMessage = (
|
||||
{c.errors.map((e, j) => {
|
||||
return (
|
||||
<Typography variant="body2" key={j}>
|
||||
{`Error fetching Kubernetes resource: '${e.resourcePath}', error: ${e.errorType}, status code: ${e.statusCode}`}
|
||||
{e.errorType !== 'FETCH_ERROR' &&
|
||||
`Error fetching Kubernetes resource: '${e.resourcePath}', error: ${e.errorType}, status code: ${e.statusCode}`}
|
||||
</Typography>
|
||||
);
|
||||
})}
|
||||
|
||||
Reference in New Issue
Block a user