MCPcopy
hub / github.com/grafana/dskit / Fatal

Method Fatal

test/recoverable_t.go:46–49  ·  view source on GitHub ↗

Fatal is equivalent to Log followed by FailNow.

(args ...any)

Source from the content-addressed store, hash-verified

44
45// Fatal is equivalent to Log followed by FailNow.
46func (p *RecoverableT) Fatal(args ...any) {
47 p.Errorf("%s", fmt.Sprint(args...))
48 p.FailNow()
49}
50
51// Fatalf is equivalent to Logf followed by FailNow.
52func (p *RecoverableT) Fatalf(format string, args ...any) {

Calls 2

FailNowMethod · 0.95
ErrorfMethod · 0.80