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

Function printErrorAndExit

tools/kafka-producer-performance/main.go:461–465  ·  view source on GitHub ↗
(code int, format string, values ...any)

Source from the content-addressed store, hash-verified

459}
460
461func printErrorAndExit(code int, format string, values ...any) {
462 fmt.Fprintf(os.Stderr, "ERROR: %s\n", fmt.Sprintf(format, values...))
463 fmt.Fprintln(os.Stderr)
464 os.Exit(code)
465}

Callers 4

generateMessagesFunction · 0.70
mainFunction · 0.70
runAsyncProducerFunction · 0.70
runSyncProducerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected