veyron/runtimes/google/ipc: make server.Serve return an error rather than panic

This happens when the receiver object passed into Serve does not look like a
valid receiver type to the server. While presumably a programming error, it's
still better to have Serve return an error rather than panic; the regular error
recovery code path from Serve should have things gracefully. We also do the
same for objects returned by a dispatcher's Lookup.

Change-Id: Ia6c61b369a661e9bf1d5ed778b1c772ac5b6d749
3 files changed
tree: 960a2f4190566aebb63188e0885fe98118d8bb3a
  1. lib/
  2. profiles/
  3. runtimes/
  4. security/
  5. services/
  6. tools/