(path string, err error)
| 94 | } |
| 95 | |
| 96 | func 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 | } |