MCPcopy Create free account
hub / github.com/bufbuild/buf / Error

Method Error

private/pkg/normalpath/normalpath.go:87–96  ·  view source on GitHub ↗

Error implements error.

()

Source from the content-addressed store, hash-verified

85
86// Error implements error.
87func (e *Error) Error() string {
88 errString := ""
89 if e.Err != nil {
90 errString = e.Err.Error()
91 }
92 if errString == "" {
93 errString = "error"
94 }
95 return e.Path + ": " + errString
96}
97
98// Unwrap implements errors.Unwrap for Error.
99func (e *Error) Unwrap() error {

Callers 5

TestValidateHostnameFunction · 0.45
TestNormalizeAndValidateFunction · 0.45
testRelErrorFunction · 0.45
TestNormalizeAndValidateFunction · 0.45
testRelErrorFunction · 0.45

Calls

no outgoing calls

Tested by 5

TestValidateHostnameFunction · 0.36
TestNormalizeAndValidateFunction · 0.36
testRelErrorFunction · 0.36
TestNormalizeAndValidateFunction · 0.36
testRelErrorFunction · 0.36