Skip to content

Commit 6087383

Browse files
committed
return 'unimplemented' message rather than panicking
1 parent abed264 commit 6087383

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

capnp-rpc/src/rpc.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1050,10 +1050,10 @@ impl<VatId> ConnectionState<VatId> {
10501050
tmp.borrow_mut().reject(remote_exception_to_error(e?));
10511051
}
10521052
return_::Canceled(_) => {
1053-
unimplemented!()
1053+
Self::send_unimplemented(&connection_state, &message)?;
10541054
}
10551055
return_::ResultsSentElsewhere(_) => {
1056-
unimplemented!()
1056+
Self::send_unimplemented(&connection_state, &message)?;
10571057
}
10581058
return_::TakeFromOtherQuestion(id) => {
10591059
if let Some(answer) =
@@ -1080,7 +1080,7 @@ impl<VatId> ConnectionState<VatId> {
10801080
}
10811081
None => {
10821082
if let return_::TakeFromOtherQuestion(_) = ret.which()? {
1083-
unimplemented!()
1083+
return Self::send_unimplemented(&connection_state, &message);
10841084
}
10851085
// Looks like this question was canceled earlier, so `Finish`
10861086
// was already sent, with `releaseResultCaps` set true so that

0 commit comments

Comments
 (0)