Change error reporting component

Signed-off-by: Adam Harvey <adam.harvey@dxc.com>
This commit is contained in:
Adam Harvey
2021-03-26 09:40:19 -04:00
parent c0a6a25cc8
commit 4ef1ba84d2
@@ -31,7 +31,7 @@ import {
InfoCard,
Progress,
useApi,
WarningPanel,
ResponseErrorPanel,
} from '@backstage/core';
import { Box, Typography } from '@material-ui/core';
import ZoomOutMap from '@material-ui/icons/ZoomOutMap';
@@ -138,11 +138,7 @@ export function SystemDiagramCard() {
if (loading) {
return <Progress />;
} else if (error) {
return (
<WarningPanel severity="error" title="Could not load system diagram">
{error.message}
</WarningPanel>
);
return <ResponseErrorPanel error={error} />;
}
return (