Skip to content

Commit

Permalink
improved error message when skaffold config not found
Browse files Browse the repository at this point in the history
  • Loading branch information
nkubala committed Aug 20, 2020
1 parent 3120848 commit 0ecf543
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/skaffold/app/cmd/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0ecf543

Please sign in to comment.