Skip to content

Commit

Permalink
logging: Improve some error messages (#3803)
Browse files Browse the repository at this point in the history
A little cleanup to some error messages I was encountering.
  • Loading branch information
justinsb committed Feb 24, 2023
1 parent 82b535a commit 0066f06
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion porch/pkg/git/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ func (r *gitRepository) loadTaggedPackages(ctx context.Context, tag *plumbing.Re
}

if krmPackage == nil {
klog.Warningf("Skipping %q: Kptfile not found: %w", name, err)
klog.Warningf("Skipping %q: Kptfile not found", name)
return nil, nil
}

Expand Down
2 changes: 1 addition & 1 deletion porch/pkg/oci/oci.go
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ func (p *ociPackageRevision) GetPackageRevision(ctx context.Context) (*v1alpha1.
func (p *ociPackageRevision) GetKptfile(ctx context.Context) (kptfile.KptFile, error) {
resources, err := LoadResources(ctx, p.parent.storage, &p.digestName)
if err != nil {
return kptfile.KptFile{}, fmt.Errorf("error loading package resources: %w", err)
return kptfile.KptFile{}, fmt.Errorf("error loading package resources for %v: %w", p.digestName, err)
}
kfString, found := resources.Contents[kptfile.KptFileName]
if !found {
Expand Down

0 comments on commit 0066f06

Please sign in to comment.