mirror of
https://github.com/containers/podman.git
synced 2025-10-19 12:12:36 +08:00
pkg/bindings: wrap image push decode error
If this fails we should know exactly what failed. The underlying connection error might just be unexpected EOF or somthing which is not helpful. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
@ -74,7 +74,7 @@ LOOP:
|
|||||||
if errors.Is(err, io.EOF) {
|
if errors.Is(err, io.EOF) {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
return err
|
return fmt.Errorf("failed to decode message from stream: %w", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
select {
|
select {
|
||||||
|
Reference in New Issue
Block a user