MCPcopy
hub / github.com/lxn/walk / Message

Method Message

error.go:34–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32}
33
34func (err *Error) Message() string {
35 if err.message != "" {
36 return err.message
37 }
38
39 if err.inner != nil {
40 if walkErr, ok := err.inner.(*Error); ok {
41 return walkErr.Message()
42 } else {
43 return err.inner.Error()
44 }
45 }
46
47 return ""
48}
49
50func (err *Error) Stack() []byte {
51 return err.stack

Callers 1

ErrorMethod · 0.95

Calls 1

ErrorMethod · 0.45

Tested by

no test coverage detected