Skip to content

Commit

Permalink
chore: improve error message for image not found (#6822)
Browse files Browse the repository at this point in the history
Signed-off-by: knqyf263 <[email protected]>
  • Loading branch information
knqyf263 authored May 30, 2024
1 parent f92ea09 commit 5b0bc58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/fanal/image/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func NewContainerImage(ctx context.Context, imageName string, opt types.ImageOpt
errs = multierror.Append(errs, err)
}

return nil, func() {}, errs
return nil, func() {}, xerrors.Errorf("unable to find the specified image %q in %q: %w", imageName, opt.ImageSources, errs)
}

func ID(img v1.Image) (string, error) {
Expand Down

0 comments on commit 5b0bc58

Please sign in to comment.