MCPcopy
hub / github.com/danielgtaylor/huma / writeErr

Function writeErr

huma.go:1972–1978  ·  view source on GitHub ↗
(api API, ctx Context, cErr *contextError, res ValidateResult)

Source from the content-addressed store, hash-verified

1970}
1971
1972func writeErr(api API, ctx Context, cErr *contextError, res ValidateResult) {
1973 if cErr.Errs != nil {
1974 WriteErr(api, ctx, cErr.Code, cErr.Msg, cErr.Errs...)
1975 } else {
1976 WriteErr(api, ctx, cErr.Code, cErr.Msg, res.Errors...)
1977 }
1978}
1979
1980func processMultipartMsgBody(form *multipart.Form, op Operation, v reflect.Value, rbt rawBodyType, rawBodyIndex []int, formValueParser func(val reflect.Value)) *contextError {
1981 f := v.FieldByIndex(rawBodyIndex)

Callers 1

RegisterFunction · 0.85

Calls 1

WriteErrFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…