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

Function printErrorAndExit

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

Source from the content-addressed store, hash-verified

150}
151
152func printErrorAndExit(code int, format string, values ...any) {
153 fmt.Fprintf(os.Stderr, "ERROR: %s\n", fmt.Sprintf(format, values...))
154 fmt.Fprintln(os.Stderr)
155 os.Exit(code)
156}
157
158func printUsageErrorAndExit(format string, values ...any) {
159 fmt.Fprintf(os.Stderr, "ERROR: %s\n", fmt.Sprintf(format, values...))

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected