Skip to content

Commit

Permalink
engine: tell user to try using kubectl if cant connect to k8s (#3597)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Miller committed Jul 21, 2020
1 parent b237c2e commit d97a7ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/engine/k8swatch/pod_watch.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func (w *PodWatcher) OnChange(ctx context.Context, st store.RStore) {
w.addWatch(pw)
ch, err := w.kCli.WatchPods(ctx, pw.labels)
if err != nil {
err = errors.Wrap(err, "Error watching pods. Are you connected to kubernetes?\n")
err = errors.Wrap(err, "Error watching pods. Are you connected to kubernetes?\nTry running `kubectl get pods`")
st.Dispatch(store.NewErrorAction(err))
return
}
Expand Down
2 changes: 1 addition & 1 deletion internal/engine/k8swatch/service_watch.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func (w *ServiceWatcher) setupWatch(ctx context.Context, st store.RStore) {

ch, err := w.kCli.WatchServices(ctx, k8s.ManagedByTiltSelector())
if err != nil {
err = errors.Wrap(err, "Error watching services. Are you connected to kubernetes?\n")
err = errors.Wrap(err, "Error watching services. Are you connected to kubernetes?\nTry running `kubectl get services`")
st.Dispatch(store.NewErrorAction(err))
return
}
Expand Down

0 comments on commit d97a7ee

Please sign in to comment.