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 7a27263 commit cd066d1Copy full SHA for cd066d1
site/src/modules/resources/AgentMetadata.tsx
@@ -6,6 +6,7 @@ import type {
6
WorkspaceAgent,
7
WorkspaceAgentMetadata,
8
} from "api/typesGenerated";
9
+import { displayError } from "components/GlobalSnackbar/utils";
10
import { Stack } from "components/Stack/Stack";
11
import dayjs from "dayjs";
12
import {
@@ -81,7 +82,9 @@ export const AgentMetadata: FC<AgentMetadataProps> = ({
81
82
try {
83
const data = JSON.parse(e.data);
84
setMetadata(data);
- } catch (err) {}
85
+ } catch {
86
+ displayError("Unable to process newest response from server");
87
+ }
88
});
89
};
90
0 commit comments