localshred/protobuf — pull request #193 by liveh2o (2014-03-13 21:08:57+00:00)
Title: Only rescue specific no method errors in the dispatcher

In the service dispatcher, we're rescuing NoMethodError and returning an RPC MethodNotFound error assuming that the method has been defined, but not implemented. This is the correct behavior, but the implementation catches all NoMethodError exceptions that are raised, which masks real
issues unrelated to the RPC method not being implemented.

Instead, only re-wrap NoMethodError exceptions if the message contains the RPC method. Raise the original error if it doesn't.

// @localshred @abrandoned