Error reports a problem, including an error, and exits the program.
(err error, msgs ...string)
| 430 | |
| 431 | // Error reports a problem, including an error, and exits the program. |
| 432 | func (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. |
| 439 | func (g *Generator) Fail(msgs ...string) { |
no outgoing calls
no test coverage detected