MCPcopy
hub / github.com/CodisLabs/codis / Errorf

Function Errorf

pkg/utils/errors/errors.go:42–51  ·  view source on GitHub ↗
(format string, v ...interface{})

Source from the content-addressed store, hash-verified

40}
41
42func Errorf(format string, v ...interface{}) error {
43 err := fmt.Errorf(format, v...)
44 if !TraceEnabled {
45 return err
46 }
47 return &TracedError{
48 Stack: trace.TraceN(1, 32),
49 Cause: err,
50 }
51}
52
53func Stack(err error) trace.Stack {
54 if err == nil {

Callers

nothing calls this directly

Calls 1

ErrorfMethod · 0.80

Tested by

no test coverage detected