Skip to content

Commit

Permalink
fix #1017 (#1147)
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Snitkovskiy <thelastdan1@gmail.com>
  • Loading branch information
snitkdan committed Nov 3, 2020
1 parent 8d5de6b commit 691fde8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmd/up/up.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import (
"github.com/okteto/okteto/cmd/utils"
"github.com/okteto/okteto/pkg/analytics"
buildCMD "github.com/okteto/okteto/pkg/cmd/build"
"github.com/okteto/okteto/pkg/config"
"github.com/okteto/okteto/pkg/errors"
k8Client "github.com/okteto/okteto/pkg/k8s/client"
"github.com/okteto/okteto/pkg/k8s/deployments"
Expand Down Expand Up @@ -201,7 +202,9 @@ func (up *upContext) start(autoDeploy, build bool) error {
var err error
up.Client, up.RestConfig, namespace, err = k8Client.GetLocal(up.Dev.Context)
if err != nil {
return fmt.Errorf("failed to load your local Kubeconfig: %s", err)
kubecfg := config.GetKubeConfigFile()
log.Infof("failed to load local Kubeconfig: %s", err)
return fmt.Errorf("failed to load your local Kubeconfig: %q context not found in %q", up.Dev.Context, kubecfg)
}

if up.Dev.Namespace == "" {
Expand Down

0 comments on commit 691fde8

Please sign in to comment.