Skip to content

Commit

Permalink
chore: minor message word changes
Browse files Browse the repository at this point in the history
  • Loading branch information
shreddedbacon committed Nov 1, 2021
1 parent a4154f6 commit 0ad6173
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/lagoonyml/lint.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func Lint(path string, linters ...Linter) error {
var li map[string]interface{}
err = yaml.Unmarshal(rawYAML, &li)
if err != nil {
return fmt.Errorf("couldn't unmarshal %v: %v", path, err)
return fmt.Errorf(".lagoon.yml configuration not valid for %v: %v", path, err)
}

// check each block for ability to be unmarshalled
Expand All @@ -40,7 +40,7 @@ func Lint(path string, linters ...Linter) error {
var le Environment
err = yaml.Unmarshal(c, &le)
if err != nil {
fmt.Printf("Warning: Not valid configuration for environment '%s': %v\n", env, err)
fmt.Printf("Warning: .lagoon.yml configuration not valid for environment '%s': %v\n", env, err)
}
l.Environments[env] = le
}
Expand All @@ -50,7 +50,7 @@ func Lint(path string, linters ...Linter) error {
var le Environment
err = yaml.Unmarshal(c, &le)
if err != nil {
fmt.Printf("Warning: Not valid configuration for production_routes '%s': %v\n", env, err)
fmt.Printf("Warning: .lagoon.yml configuration not valid for production_routes '%s': %v\n", env, err)
}
if env == "active" {
l.ProductionRoutes.Active = le
Expand Down

0 comments on commit 0ad6173

Please sign in to comment.