Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
Fix portforward error check
Browse files Browse the repository at this point in the history
  • Loading branch information
Alfonso Acosta authored and hiddeco committed Aug 22, 2019
1 parent 19c36f4 commit ada17ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/fluxctl/portforward.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func tryPortforwards(ns string, selectors ...metav1.LabelSelector) (p *portforwa
return
}

if !strings.Contains(err.Error(), "Could not find pod for selector") {
if !strings.Contains(err.Error(), "Could not find running pod for selector") {
return
} else {
message = fmt.Sprintf("%s\n %s", message, metav1.FormatLabelSelector(&selector))
Expand Down

0 comments on commit ada17ad

Please sign in to comment.