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

Function NewError

private/pkg/normalpath/normalpath.go:79–84  ·  view source on GitHub ↗

NewError returns a new Error.

(path string, err error)

Source from the content-addressed store, hash-verified

77
78// NewError returns a new Error.
79func NewError(path string, err error) *Error {
80 return &Error{
81 Path: path,
82 Err: err,
83 }
84}
85
86// Error implements error.
87func (e *Error) Error() string {

Callers 3

newErrNotDirFunction · 0.92
NormalizeAndValidateFunction · 0.85
NormalizeAndValidateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…