MCPcopy Index your code
hub / github.com/git-lfs/git-lfs / Context

Function Context

errors/context.go:37–42  ·  view source on GitHub ↗

ErrorContext returns the context map for an error if it is a wrappedError. If it is not a wrappedError it will return an empty map.

(err error)

Source from the content-addressed store, hash-verified

35// ErrorContext returns the context map for an error if it is a wrappedError.
36// If it is not a wrappedError it will return an empty map.
37func Context(err error) map[string]interface{} {
38 if e, ok := err.(withContext); ok {
39 return e.Context()
40 }
41 return nil
42}

Callers 2

logPanicToWriterFunction · 0.92

Calls 1

ContextMethod · 0.65

Tested by 1