MCPcopy
hub / github.com/cubefs/cubefs / Stack

Function Stack

util/errors/errors.go:75–88  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

73}
74
75func Stack(err error) string {
76 e, ok := err.(*ErrorTrace)
77 if !ok {
78 return err.Error()
79 }
80
81 var msg string
82
83 stack := strings.Split(e.msg, "::")
84 for _, s := range stack {
85 msg = fmt.Sprintf("%v\n%v", msg, strings.TrimPrefix(s, " "))
86 }
87 return msg
88}

Callers 15

mountFunction · 0.92
StartMethod · 0.92
CreateNewKeyMethod · 0.92
DeleteKeyMethod · 0.92
GetKeyMethod · 0.92
GetAKInfoMethod · 0.92
AddCapsMethod · 0.92
DeleteCapsMethod · 0.92
WriteMethod · 0.92
TruncateMethod · 0.92
repairMethod · 0.92

Calls 2

ErrorMethod · 0.65
SplitMethod · 0.65

Tested by 3

TestError01Function · 0.68
TestError02Function · 0.68
TestError03Function · 0.68