MCPcopy
hub / github.com/sa7mon/S3Scanner / failOnError

Function failOnError

cmd/mqingest/mqingest.go:15–20  ·  view source on GitHub ↗
(err error, msg string)

Source from the content-addressed store, hash-verified

13)
14
15func failOnError(err error, msg string) {
16 if err != nil {
17 log.Printf("%v - %v\n", msg, err)
18 os.Exit(1)
19 }
20}
21
22func printUsage() {
23 fmt.Println("mqingest takes in a file of bucket names, one per line, and publishes them to a RabbitMQ queue")

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected