Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
apiserver/params: remove ClientError helper #4431
Conversation
davecheney
added some commits
Feb 8, 2016
cherylj
commented
Feb 16, 2016
|
This change broke restore in master, so if you merge it, you'll also want to backport #4421 |
|
@cherylj will do. thanks |
|
Was discarded on Review Board. |
anastasiamac
closed this
Aug 22, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
davecheney commentedFeb 16, 2016
This is a backport from master to 1.25
Updates LP#1538583
api/apiclient.APICall was the sole caller of params.ClientError.
params.Client error would rewrite the error value iff it was
rpc.RequestError, claiming that it was leaking unnecessary information
to the caller, specfically the "request error: " prefix. In b4e2785
the error prefix was convered to an errors.Annotate wrapper removing
the requirement to convert the error type.
Now, by removing params.ClientError, we can also remove the
errors.Annotate wrapper as the type of the error tells us what it is.
So, callers get
a. A nice annotate error backtrace using errors.Trace
b. Access to the original *rpc.RequestError to inspect if they want.
(Review request: http://reviews.vapour.ws/r/3870/)