Skip to content

Commit 2e01245

Browse files
committed
display correct errors on crashed attempts
1 parent f1eb187 commit 2e01245

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/webapp/app/v3/services/crashTaskRun.server.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export class CrashTaskRunService extends BaseService {
9797
event: event,
9898
crashedAt: opts.crashedAt,
9999
exception: {
100-
type: "Worker crashed",
100+
type: opts.errorCode ?? "TASK_RUN_CRASHED",
101101
message: opts.reason,
102102
stacktrace: opts.logs,
103103
},
@@ -119,6 +119,7 @@ export class CrashTaskRunService extends BaseService {
119119
{
120120
reason: opts.reason,
121121
logs: opts.logs,
122+
code: opts.errorCode,
122123
}
123124
);
124125
}

0 commit comments

Comments
 (0)