MCPcopy Index your code
hub / github.com/minio/mc / fatalIf

Function fatalIf

cmd/error.go:49–54  ·  view source on GitHub ↗

fatalIf wrapper function which takes error and selectively prints stack frames if available on debug

(err *probe.Error, msg string, data ...any)

Source from the content-addressed store, hash-verified

47
48// fatalIf wrapper function which takes error and selectively prints stack frames if available on debug
49func fatalIf(err *probe.Error, msg string, data ...any) {
50 if err == nil {
51 return
52 }
53 fatal(err, msg, data...)
54}
55
56func fatal(err *probe.Error, msg string, data ...any) {
57 if globalJSON {

Callers 15

mainAdminUserRemoveFunction · 0.85
JSONMethod · 0.85
mainCopyFunction · 0.85
JSONMethod · 0.85
JSONMethod · 0.85
mainAdminServerUpdateFunction · 0.85
JSONMethod · 0.85
mainEncryptInfoFunction · 0.85
StringMethod · 0.85
JSONMethod · 0.85
StringMethod · 0.85

Calls 1

fatalFunction · 0.85

Tested by

no test coverage detected