Check error when copying from pod

This commit is contained in:
Maciej Szulik 2019-04-24 15:30:07 +02:00
parent 3ba70b9b5e
commit 12066b069c
No known key found for this signature in database
GPG Key ID: F15E55D276FA84C4

View File

@ -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)