MCPcopy
hub / github.com/grpc-ecosystem/grpc-gateway / emitError

Function emitError

protoc-gen-openapiv2/main.go:257–259  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

255}
256
257func emitError(err error) {
258 emitResp(&pluginpb.CodeGeneratorResponse{Error: proto.String(err.Error())})
259}
260
261func emitResp(resp *pluginpb.CodeGeneratorResponse) {
262 buf, err := proto.Marshal(resp)

Callers 1

mainFunction · 0.85

Calls 3

emitRespFunction · 0.85
StringMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected