Code Review
/
govpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Check retval value and convert to error in generated RPC client code
[govpp.git]
/
binapi
/
http_static
/
http_static_rpc.ba.go
diff --git
a/binapi/http_static/http_static_rpc.ba.go
b/binapi/http_static/http_static_rpc.ba.go
index
67329dd
..
12bd4c1
100644
(file)
--- a/
binapi/http_static/http_static_rpc.ba.go
+++ b/
binapi/http_static/http_static_rpc.ba.go
@@
-8,7
+8,7
@@
import (
api "git.fd.io/govpp.git/api"
)
api "git.fd.io/govpp.git/api"
)
-// RPCService defines RPC service
http_static.
+// RPCService defines RPC service http_static.
type RPCService interface {
HTTPStaticEnable(ctx context.Context, in *HTTPStaticEnable) (*HTTPStaticEnableReply, error)
}
type RPCService interface {
HTTPStaticEnable(ctx context.Context, in *HTTPStaticEnable) (*HTTPStaticEnableReply, error)
}
@@
-27,5
+27,5
@@
func (c *serviceClient) HTTPStaticEnable(ctx context.Context, in *HTTPStaticEnab
if err != nil {
return nil, err
}
if err != nil {
return nil, err
}
- return out,
nil
+ return out,
api.RetvalToVPPApiError(out.Retval)
}
}