From 70c8d02a7363b18e6bf1d7e7728bedccdcd1cdf9 Mon Sep 17 00:00:00 2001 From: pixiake Date: Sat, 23 May 2020 13:31:21 +0800 Subject: [PATCH] Update default.go --- pkg/config/default.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/config/default.go b/pkg/config/default.go index 5fc7b94d..8aea24b8 100644 --- a/pkg/config/default.go +++ b/pkg/config/default.go @@ -19,7 +19,7 @@ func ParseClusterCfg(clusterCfgPath string, all bool, logger *log.Logger) (*kube if len(clusterCfgPath) == 0 { currentDir, err := filepath.Abs(filepath.Dir(os.Args[0])) if err != nil { - return nil, errors.Wrap(err, "Faild to get current dir") + return nil, errors.Wrap(err, "Failed to look up current directory") } cfgFile := fmt.Sprintf("%s/config.yaml", currentDir) if util.IsExist(cfgFile) {