Minor grammar tweak on init command errors (exist -> exists)

GITHUB_PR_NUMBER: 6624
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/6624

Co-authored-by: Zack Amiton <20943979+Nathansbud@users.noreply.github.com>
GitOrigin-RevId: e30d2187a980b7622a6e68c32608b68f2ccdd491
This commit is contained in:
hasura-bot 2021-05-04 22:05:56 +05:30
parent dffe785543
commit 20694a96f0

View File

@ -178,7 +178,7 @@ func (o *InitOptions) createExecutionDirectory() error {
// create the execution directory
if _, err := os.Stat(o.EC.ExecutionDirectory); err == nil {
return errors.Errorf("directory '%s' already exist", o.EC.ExecutionDirectory)
return errors.Errorf("directory '%s' already exists", o.EC.ExecutionDirectory)
}
err := os.MkdirAll(o.EC.ExecutionDirectory, os.ModePerm)
if err != nil {
@ -293,7 +293,7 @@ func (o *InitOptions) createTemplateFiles() error {
templatePath := filepath.Join(o.EC.InitTemplatesRepo.Path, o.Template)
info, err := os.Stat(templatePath)
if err != nil {
return errors.Wrap(err, "template doesn't exists")
return errors.Wrap(err, "template doesn't exist")
}
if !info.IsDir() {
return errors.Errorf("template should be a directory")