Add exit code and runtime to abnormal exit error message.

This commit is contained in:
Jeffrey C. Ollie
2023-12-30 22:24:25 -06:00
parent 8254ffb750
commit 792284fb69
3 changed files with 27 additions and 8 deletions

View File

@@ -186,7 +186,7 @@ fn drainMailbox(self: *Thread) !void {
.jump_to_prompt => |v| try self.impl.jumpToPrompt(v),
.start_synchronized_output => self.startSynchronizedOutput(),
.linefeed_mode => |v| self.flags.linefeed_mode = v,
.child_exited_abnormally => try self.impl.childExitedAbnormally(),
.child_exited_abnormally => |v| try self.impl.childExitedAbnormally(v.exit_code, v.runtime_ms),
.write_small => |v| try self.impl.queueWrite(v.data[0..v.len], self.flags.linefeed_mode),
.write_stable => |v| try self.impl.queueWrite(v, self.flags.linefeed_mode),
.write_alloc => |v| {