Commit 74c91604 authored by Kenton Varda's avatar Kenton Varda

Merge pull request #276 from dwrensha/missing-switch

Add missing case analysis in handleUnimplemented().
parents 39a3c346 108e3fc4
...@@ -2037,7 +2037,10 @@ private: ...@@ -2037,7 +2037,10 @@ private:
void handleUnimplemented(const rpc::Message::Reader& message) { void handleUnimplemented(const rpc::Message::Reader& message) {
switch (message.which()) { switch (message.which()) {
case rpc::Message::RESOLVE: { case rpc::Message::RESOLVE: {
auto cap = message.getResolve().getCap(); auto resolve = message.getResolve();
switch (resolve.which()) {
case rpc::Resolve::CAP: {
auto cap = resolve.getCap();
switch (cap.which()) { switch (cap.which()) {
case rpc::CapDescriptor::NONE: case rpc::CapDescriptor::NONE:
// Nothing to do (but this ought never to happen). // Nothing to do (but this ought never to happen).
...@@ -2058,6 +2061,12 @@ private: ...@@ -2058,6 +2061,12 @@ private:
} }
break; break;
} }
case rpc::Resolve::EXCEPTION:
// Nothing to do.
break;
}
break;
}
default: default:
KJ_FAIL_ASSERT("Peer did not implement required RPC message type.", (uint)message.which()); KJ_FAIL_ASSERT("Peer did not implement required RPC message type.", (uint)message.which());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment