Skip to content

Commit

Permalink
rephrase
Browse files Browse the repository at this point in the history
Signed-off-by: Billy Zha <[email protected]>
  • Loading branch information
qweeah committed Nov 6, 2023
1 parent b83d39b commit dcf2ef9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/oras/internal/option/target.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ func (opts *Target) NewReadonlyTarget(ctx context.Context, common Common, logger
}
info, err := os.Stat(opts.Path)
if err != nil {
return nil, fmt.Errorf("invalid OCI layout path in %q: %w", opts.RawReference, err)
return nil, fmt.Errorf("invalid path in %q: %w", opts.RawReference, err)
}
if info.IsDir() {
return oci.NewFromFS(ctx, os.DirFS(opts.Path))
Expand Down

0 comments on commit dcf2ef9

Please sign in to comment.