Skip to content

Commit ccc5ee3

Browse files
committed
archive: Add WriteDiff error logs
Signed-off-by: Shiming Zhang <[email protected]>
1 parent 61a46e9 commit ccc5ee3

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

archive/tar.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ func Diff(ctx context.Context, a, b string) io.ReadCloser {
5454

5555
go func() {
5656
err := WriteDiff(ctx, w, a, b)
57+
if err != nil {
58+
log.G(ctx).WithError(err).Debugf("write diff failed")
59+
}
5760
if err = w.CloseWithError(err); err != nil {
5861
log.G(ctx).WithError(err).Debugf("closing tar pipe failed")
5962
}

0 commit comments

Comments
 (0)