MCPcopy Create free account
hub / github.com/Shopify/ghostferry / Fatal

Method Fatal

error_handler.go:69–77  ·  view source on GitHub ↗
(from string, err error)

Source from the content-addressed store, hash-verified

67}
68
69func (this *PanicErrorHandler) Fatal(from string, err error) {
70 if atomic.AddInt32(&this.errorCount, 1) > 1 {
71 LogWithField("tag", "error_handler").WithError(err).WithField("errfrom", from).Error("multiple fatal errors detected, not reporting again")
72 return
73 }
74
75 this.ReportError(from, err)
76 panic("fatal error detected, see logs for details")
77}

Callers

nothing calls this directly

Calls 5

ReportErrorMethod · 0.95
LogWithFieldFunction · 0.85
ErrorMethod · 0.65
WithFieldMethod · 0.65
WithErrorMethod · 0.65

Tested by

no test coverage detected