MCPcopy
hub / github.com/larksuite/cli / wrapInputFileError

Function wrapInputFileError

internal/cmdutil/resolve.go:96–101  ·  view source on GitHub ↗
(path string, err error)

Source from the content-addressed store, hash-verified

94}
95
96func wrapInputFileError(path string, err error) error {
97 if errors.Is(err, fileio.ErrPathValidation) {
98 return fmt.Errorf("invalid file path %q: %w", path, err)
99 }
100 return fmt.Errorf("cannot read file %q: %w", path, err)
101}

Callers 1

ReadInputFileFunction · 0.85

Calls 1

IsMethod · 0.80

Tested by

no test coverage detected