MCPcopy Index your code
hub / github.com/dearcode/candy / JsonError

Method JsonError

meta/errors.go:15–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13}
14
15func (r *ResponseHeader) JsonError() error {
16 if r == nil {
17 return nil
18 }
19 return fmt.Errorf(`{"Code":%d, "Msg":"%s"}`, r.Code, r.Msg)
20}

Callers 3

RegisterMethod · 0.80
LoginMethod · 0.80
LogoutMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected