mirror of https://github.com/docker/cli.git
Merge pull request #1645 from silvin-lubecki/fix-panic-error
Fix potential panic at DockerCli creation
This commit is contained in:
commit
1c5f611c76
|
@ -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())
|
||||||
|
|
Loading…
Reference in New Issue