Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
15
func
(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
Register
Method · 0.80
Login
Method · 0.80
Logout
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected