mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 23:37:01 +00:00
Check error when copying from pod
This commit is contained in:
parent
3ba70b9b5e
commit
12066b069c
@ -300,7 +300,8 @@ func (o *CopyOptions) copyFromPod(src, dest fileSpec) error {
|
||||
|
||||
go func() {
|
||||
defer outStream.Close()
|
||||
o.execute(options)
|
||||
err := o.execute(options)
|
||||
cmdutil.CheckErr(err)
|
||||
}()
|
||||
prefix := getPrefix(src.File)
|
||||
prefix = path.Clean(prefix)
|
||||
|
Loading…
Reference in New Issue
Block a user