Skip to content

Commit 12066b0

Browse files
committed
Check error when copying from pod
1 parent 3ba70b9 commit 12066b0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/kubectl/cmd/cp/cp.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,8 @@ func (o *CopyOptions) copyFromPod(src, dest fileSpec) error {
300300

301301
go func() {
302302
defer outStream.Close()
303-
o.execute(options)
303+
err := o.execute(options)
304+
cmdutil.CheckErr(err)
304305
}()
305306
prefix := getPrefix(src.File)
306307
prefix = path.Clean(prefix)

0 commit comments

Comments
 (0)