Merge pull request #1645 from silvin-lubecki/fix-panic-error

Fix potential panic at DockerCli creation
This commit is contained in:
Sebastiaan van Stijn 2019-01-29 16:40:56 +01:00 committed by GitHub
commit 1c5f611c76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -169,7 +169,7 @@ func noArgs(cmd *cobra.Command, args []string) error {
func main() { func main() {
dockerCli, err := command.NewDockerCli() dockerCli, err := command.NewDockerCli()
if err != nil { if err != nil {
fmt.Fprintln(dockerCli.Err(), err) fmt.Fprintln(os.Stderr, err)
os.Exit(1) os.Exit(1)
} }
logrus.SetOutput(dockerCli.Err()) logrus.SetOutput(dockerCli.Err())