MCPcopy
hub / github.com/gourouting/singo / ParamErr

Function ParamErr

serializer/common.go:70–75  ·  view source on GitHub ↗

ParamErr handles parameter errors.

(msg string, err error)

Source from the content-addressed store, hash-verified

68
69// ParamErr handles parameter errors.
70func ParamErr(msg string, err error) Response {
71 if msg == "" {
72 msg = "Parameter error"
73 }
74 return Err(CodeParamErr, msg, err)
75}

Callers 3

RegisterMethod · 0.92
LoginMethod · 0.92
ErrorResponseFunction · 0.92

Calls 1

ErrFunction · 0.85

Tested by

no test coverage detected