Skip to content

Commit 9626517

Browse files
committed
libimage: drop "internal error" message on regular error
This error can happen in many different cases such a a non existing image or other kind of pull errors. In all cases they do not reflect any sort of internal inconsistency in the code itself so this is just misleading to users. Fixes: #2465 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
1 parent 43321ac commit 9626517

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

libimage/copier.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ func (c *Copier) copyToStorage(ctx context.Context, source, destination types.Im
488488
var resolvedReference types.ImageReference
489489
_, err := c.copyInternal(ctx, source, destination, &resolvedReference)
490490
if err != nil {
491-
return nil, fmt.Errorf("internal error: unable to copy from source %s: %w", transports.ImageName(source), err)
491+
return nil, fmt.Errorf("unable to copy from source %s: %w", transports.ImageName(source), err)
492492
}
493493
if resolvedReference == nil {
494494
return nil, fmt.Errorf("internal error: After attempting to copy %s, resolvedReference is nil", source)

0 commit comments

Comments
 (0)