MCPcopy
hub / github.com/IBM/sarama / printErrorAndExit

Function printErrorAndExit

tools/kafka-console-producer/kafka-console-producer.go:143–147  ·  view source on GitHub ↗
(code int, format string, values ...any)

Source from the content-addressed store, hash-verified

141}
142
143func printErrorAndExit(code int, format string, values ...any) {
144 fmt.Fprintf(os.Stderr, "ERROR: %s\n", fmt.Sprintf(format, values...))
145 fmt.Fprintln(os.Stderr)
146 os.Exit(code)
147}
148
149func printUsageErrorAndExit(message string) {
150 fmt.Fprintln(os.Stderr, "ERROR:", message)

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected