MCPcopy
hub / github.com/cortexlabs/cortex / ErrorHandler

Function ErrorHandler

pkg/operator/operator/cron.go:396–402  ·  view source on GitHub ↗
(cronName string)

Source from the content-addressed store, hash-verified

394}
395
396func ErrorHandler(cronName string) func(error) {
397 return func(err error) {
398 err = errors.Wrap(err, cronName+" cron failed")
399 telemetry.Error(err)
400 operatorLogger.Error(err)
401 }
402}

Callers 2

UpdateAPIMetricsCronFunction · 0.92
mainFunction · 0.92

Calls 3

WrapFunction · 0.92
ErrorFunction · 0.92
ErrorMethod · 0.80

Tested by

no test coverage detected