Skip to content

Commit

Permalink
chore: use kpm error event in the ReadFromOCISource function.
Browse files Browse the repository at this point in the history
  • Loading branch information
Peefy committed Aug 28, 2023
1 parent bec775e commit 459a2f9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pkg/source/oci.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,9 @@ func ReadFromOCISource(src string) (string, error) {
localPath := ociOpts.AddStoragePathSuffix(tmpDir)

// 2. Pull the tarball from OCI.
err = oci.Pull(localPath, ociOpts.Reg, ociOpts.Repo, ociOpts.Tag)

if err != nil {
return src, err
e = oci.Pull(localPath, ociOpts.Reg, ociOpts.Repo, ociOpts.Tag)
if e != nil {
return src, errors.New(e.Error())
}

// 3. Get the (*.tar) file path.
Expand Down

0 comments on commit 459a2f9

Please sign in to comment.