MCPcopy
hub / github.com/go-git/go-git / Error

Method Error

plumbing/format/packfile/error.go:16–22  ·  view source on GitHub ↗

Error returns a text representation of the error.

()

Source from the content-addressed store, hash-verified

14
15// Error returns a text representation of the error.
16func (e *Error) Error() string {
17 if e.details == "" {
18 return e.reason
19 }
20
21 return fmt.Sprintf("%s: %s", e.reason, e.details)
22}
23
24// AddDetails adds details to an error, with additional text.
25func (e *Error) AddDetails(format string, args ...interface{}) *Error {

Callers 14

TestDecodeInvalidHashMethod · 0.45
BenchmarkParserFunction · 0.45
isInvalidFunction · 0.45
packfile.goFile · 0.45
NewReaderFunction · 0.45
BenchmarkFindOffsetFunction · 0.45
BenchmarkFindCRC32Function · 0.45
BenchmarkContainsFunction · 0.45
BenchmarkEntriesFunction · 0.45

Calls

no outgoing calls

Tested by 11

TestDecodeInvalidHashMethod · 0.36
BenchmarkParserFunction · 0.36
BenchmarkFindOffsetFunction · 0.36
BenchmarkFindCRC32Function · 0.36
BenchmarkContainsFunction · 0.36
BenchmarkEntriesFunction · 0.36
TestDecodeErrorsFunction · 0.36