Skip to content

Commit 28de42d

Browse files
committed
Improe error messaging
1 parent 5a10db4 commit 28de42d

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

bun.lock

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"@tanstack/react-query-devtools": "^5.51.16",
2323
"@types/byte-size": "^8.1.2",
2424
"@types/downloadjs": "^1.4.6",
25+
"@types/js-yaml": "^4.0.9",
2526
"@types/lodash": "^4.17.12",
2627
"@types/memoizee": "^0.4.11",
2728
"@types/object-hash": "^3.0.6",
@@ -48,6 +49,7 @@
4849
"fetch-progress": "^1.3.0",
4950
"formik": "^2.4.6",
5051
"fuse.js": "^7.1.0",
52+
"js-yaml": "^4.1.1",
5153
"json-2-csv": "^5.5.4",
5254
"katex": "^0.16.21",
5355
"lodash": "^4.17.21",

client/src/pages/submission-summary/GenericDetailsList.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { List, ListItem, ListItemText, ListProps } from "@mui/material";
22
import { entries, startCase } from "lodash";
33
import { CodeBlock } from "components/CodeBlock";
4+
import { dump } from "js-yaml";
45

56
export default function GenericDetailsList({
67
data,
@@ -12,11 +13,7 @@ export default function GenericDetailsList({
1213
<ListItem key={k} disableGutters>
1314
<ListItemText
1415
secondary={startCase(k)}
15-
primary={
16-
<CodeBlock language="json">
17-
{JSON.stringify(v, null, 2)}
18-
</CodeBlock>
19-
}
16+
primary={<CodeBlock language="yaml">{dump(v)}</CodeBlock>}
2017
/>
2118
</ListItem>
2219
))}

0 commit comments

Comments
 (0)