Skip to content

Commit e5bf022

Browse files
committed
feat(submission): add error and message
1 parent a05348a commit e5bf022

File tree

4 files changed

+17
-1
lines changed

4 files changed

+17
-1
lines changed

src/components/Benchmarks/BenchmarkDetail.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ const BenchmarkDetail = ({
7878
result = (
7979
<Result
8080
status={jobData.status}
81+
message={jobData.message}
82+
error={jobData.error}
8183
stderr={jobData.stderr}
8284
stdout={jobData.stdout}
8385
execDuration={jobData.execDuration}

src/components/Dashboard/Dashboard.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ export default function Example() {
3030
result = (
3131
<Result
3232
status={jobData.status}
33+
message={jobData.message}
34+
error={jobData.error}
3335
stdout={jobData.stdout}
3436
stderr={jobData.stderr}
3537
execDuration={jobData.execDuration}

src/components/Dashboard/Result.tsx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,17 @@ import React from 'react';
22

33
interface LayoutProps {
44
status: string;
5+
message: string;
6+
error: string;
57
stdout?: string;
68
stderr?: string;
79
execDuration?: number;
810
}
911

1012
const Result: React.FC<LayoutProps> = ({
1113
status,
14+
message,
15+
error,
1216
stdout,
1317
stderr,
1418
execDuration,
@@ -18,11 +22,17 @@ const Result: React.FC<LayoutProps> = ({
1822
<b>Status: </b>
1923
{status}
2024
<br />
25+
<b>Message: </b>
26+
{message}
27+
<br />
28+
<b>Error: </b>
29+
{error}
30+
<br />
2131
<b>Stdout: </b>
2232
<pre>{stdout}</pre>
2333
<b>Stderr: </b>
2434
<pre>{stderr}</pre>
25-
<b>Execution duration (milliseconds): </b>
35+
<b>Execution duration (μs): </b>
2636
<pre>{execDuration}</pre>
2737
</div>
2838
);

src/hooks/submissions.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ function useProcessInterval({
5858
}: {
5959
data: {
6060
status: string;
61+
message: string;
62+
error: string;
6163
stdout: string;
6264
stderr: string;
6365
execDuration: number;

0 commit comments

Comments
 (0)