Skip to content

Commit 579b174

Browse files
committed
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 <[email protected]>
1 parent 6c0e581 commit 579b174

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/bindings/images/push.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ LOOP:
7474
if errors.Is(err, io.EOF) {
7575
break
7676
}
77-
return err
77+
return fmt.Errorf("failed to decode message from stream: %w", err)
7878
}
7979

8080
select {

0 commit comments

Comments
 (0)