Skip to content

Commit eed71f9

Browse files
committed
all internal errors become crashes by default
1 parent 2ae2a7c commit eed71f9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,9 @@ export class CompleteAttemptService extends BaseService {
290290
sanitizedError.code === "MAX_DURATION_EXCEEDED"
291291
) {
292292
status = "TIMED_OUT";
293+
// TODO: check we want these all to be crashes by default
294+
} else if (sanitizedError.type === "INTERNAL_ERROR") {
295+
status = "CRASHED";
293296
} else {
294297
status = "COMPLETED_WITH_ERRORS";
295298
}

0 commit comments

Comments
 (0)