MCPcopy
hub / github.com/golang/protobuf / Error

Method Error

protoc-gen-go/generator/generator.go:432–436  ·  view source on GitHub ↗

Error reports a problem, including an error, and exits the program.

(err error, msgs ...string)

Source from the content-addressed store, hash-verified

430
431// Error reports a problem, including an error, and exits the program.
432func (g *Generator) Error(err error, msgs ...string) {
433 s := strings.Join(msgs, " ") + ":" + err.Error()
434 log.Print("protoc-gen-go: error:", s)
435 os.Exit(1)
436}
437
438// Fail reports a problem and exits the program.
439func (g *Generator) Fail(msgs ...string) {

Callers 3

PMethod · 0.45
generateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected