Fix nil-pointer panic in wspr.

When MethodSignature is called from Prepare, a nil ctx is passed in.  We
have to check for ctx==nil, and pass nil into verror.Make.

This CL also adds tests for the case when MethodNotFound and
WrongNumberOfArg errors are returned, and cleans up the app_test a bit.

Change-Id: I907223d392012482802bdceb0b182c81e8933849
2 files changed
tree: dff2fc649c2fee44b3a299a4da49c6cefcfc12ba
  1. services/