Handle error correctly in kubee-proxy command

Signed-off-by: Johannes M. Scheuermann <joh.scheuer@gmail.com>
This commit is contained in:
Johannes M. Scheuermann 2019-06-06 22:25:36 +02:00
parent f22b67dd8f
commit 352564714a

View File

@ -435,7 +435,10 @@ with the apiserver API to configure the proxy.`,
if err := opts.Validate(args); err != nil {
klog.Fatalf("failed validate: %v", err)
}
klog.Fatal(opts.Run())
if err := opts.Run(); err != nil {
klog.Exit(err)
}
},
}