Unverified Commit 36e06bbb authored by Kubernetes Prow Robot's avatar Kubernetes Prow Robot Committed by GitHub

Merge pull request #77010 from soltysh/fix_cp

Check error when copying from pod
parents 43fb2b34 12066b06
...@@ -300,7 +300,8 @@ func (o *CopyOptions) copyFromPod(src, dest fileSpec) error { ...@@ -300,7 +300,8 @@ func (o *CopyOptions) copyFromPod(src, dest fileSpec) error {
go func() { go func() {
defer outStream.Close() defer outStream.Close()
o.execute(options) err := o.execute(options)
cmdutil.CheckErr(err)
}() }()
prefix := getPrefix(src.File) prefix := getPrefix(src.File)
prefix = path.Clean(prefix) prefix = path.Clean(prefix)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment