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:
Paul Holzinger
2025-04-29 12:04:50 +02:00
parent 6c0e581fa9
commit 579b17425e

View File

@ -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 {