Skip to content

Commit

Permalink
minor bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
sbueringer committed Sep 22, 2018
1 parent 078caaa commit e6df5cd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion pkg/cmd/lb.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,9 @@ func (o *LBOptions) Run() error {
if *o.configFlags.Context == "" {
err := o.runWithConfig()
if err != nil {
fmt.Printf("Error listing server for %s: %v\n", o.rawConfig.CurrentContext, err)
return fmt.Errorf("Error listing loadbalancers for %s: %v\n", o.rawConfig.CurrentContext, err)
}
return nil
}

for context := range getMatchingContexts(o.rawConfig.Contexts, *o.configFlags.Context) {
Expand Down
3 changes: 2 additions & 1 deletion pkg/cmd/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,9 @@ func (o *ServerOptions) Run() error {
if *o.configFlags.Context == "" {
err := o.runWithConfig()
if err != nil {
fmt.Printf("Error listing server for %s: %v\n", o.rawConfig.CurrentContext, err)
return fmt.Errorf("error listing server for %s: %v\n", o.rawConfig.CurrentContext, err)
}
return nil
}

for context := range getMatchingContexts(o.rawConfig.Contexts, *o.configFlags.Context) {
Expand Down
3 changes: 2 additions & 1 deletion pkg/cmd/volume.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,9 @@ func (o *VolumesOptions) Run() error {
if *o.configFlags.Context == "" {
err := o.runWithConfig()
if err != nil {
fmt.Printf("Error listing server for %s: %v\n", o.rawConfig.CurrentContext, err)
return fmt.Errorf("error listing volumes for %s: %v\n", o.rawConfig.CurrentContext, err)
}
return nil
}

for context := range getMatchingContexts(o.rawConfig.Contexts, *o.configFlags.Context) {
Expand Down

0 comments on commit e6df5cd

Please sign in to comment.