Skip to content

Commit

Permalink
avoid log panic errors
Browse files Browse the repository at this point in the history
  • Loading branch information
rawlingsj committed Oct 23, 2016
1 parent 88ac77c commit 7988717
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
package client

import (
"github.com/fabric8io/gofabric8/util"
oclient "github.com/openshift/origin/pkg/client"
"github.com/pkg/errors"
"k8s.io/kubernetes/pkg/client/restclient"
Expand All @@ -28,8 +27,7 @@ func NewClient(f *cmdutil.Factory) (*client.Client, *restclient.Config, error) {
var err error
cfg, err := f.ClientConfig()
if err != nil {
util.Error("Could not initialise a client - is your server setting correct?\n\n")
util.Fatalf("%v", err)
return nil, nil, errors.Wrap(err, "Could not initialise client")
}
c, err := client.New(cfg)
if err != nil {
Expand Down

0 comments on commit 7988717

Please sign in to comment.