Check error when copying from pod
This commit is contained in:
@@ -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)
|
||||||
|
Reference in New Issue
Block a user