refactor: implement transport_error

This commit is contained in:
CJ van den Berg 2026-03-10 15:46:02 +01:00
parent 650beac975
commit 4baca8b192
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
2 changed files with 19 additions and 3 deletions

View file

@ -165,7 +165,8 @@ const Endpoint = struct {
if (self.proxies.get(e.id)) |p|
p.send(.{ "exit", e.reason }) catch {};
},
.link, .transport_error => return tp.exit_error(error.UnexpectedMessage, null),
.transport_error => |te| return tp.exit(te.reason),
.link => return tp.exit_error(error.UnexpectedMessage, null),
}
}