From 0ecf5431b32e16277dbe9f819756b6be7ac42ec3 Mon Sep 17 00:00:00 2001 From: Nick Kubala Date: Mon, 17 Aug 2020 10:51:36 -0700 Subject: [PATCH] improved error message when skaffold config not found --- cmd/skaffold/app/cmd/runner.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/skaffold/app/cmd/runner.go b/cmd/skaffold/app/cmd/runner.go index fd2703280b8..86ddc9cbac5 100644 --- a/cmd/skaffold/app/cmd/runner.go +++ b/cmd/skaffold/app/cmd/runner.go @@ -70,7 +70,7 @@ func runContext(opts config.SkaffoldOptions) (*runcontext.RunContext, *latest.Sk parsed, err := schema.ParseConfigAndUpgrade(opts.ConfigurationFile, latest.Version) if err != nil { if os.IsNotExist(errors.Unwrap(err)) { - return nil, nil, fmt.Errorf("[%s] not found. You might need to run `skaffold init`", opts.ConfigurationFile) + return nil, nil, fmt.Errorf("skaffold config file %s not found - check your current working directory, or try running `skaffold init`", opts.ConfigurationFile) } // If the error is NOT that the file doesn't exist, then we warn the user