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:
parent
6c0e581fa9
commit
579b17425e
|
@ -74,7 +74,7 @@ LOOP:
|
|||
if errors.Is(err, io.EOF) {
|
||||
break
|
||||
}
|
||||
return err
|
||||
return fmt.Errorf("failed to decode message from stream: %w", err)
|
||||
}
|
||||
|
||||
select {
|
||||
|
|
Loading…
Reference in New Issue