Merge branch 'master' of github.com:kubernetes-incubator/cri-o into lastError

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
Daniel J Walsh 2017-09-16 05:18:19 -04:00
commit 33fc0231f7
134 changed files with 3165 additions and 1812 deletions

View file

@ -2,9 +2,10 @@ package main
import (
"fmt"
"os"
"github.com/kubernetes-incubator/cri-o/libkpod"
"github.com/pkg/errors"
"github.com/sirupsen/logrus"
"github.com/urfave/cli"
)
@ -60,9 +61,9 @@ func stopCmd(c *cli.Context) error {
cid, err := server.ContainerStop(container, stopTimeout)
if err != nil {
if lastError != nil {
logrus.Error(lastError)
fmt.Fprintln(os.Stderr, lastError)
}
lastError = errors.Wrapf(err, "failed to stop %v", container)
lastError = errors.Wrapf(err, "failed to stop container %v", container)
} else {
fmt.Println(cid)
}