Skip to content

Commit

Permalink
Return error if config override is invalid
Browse files Browse the repository at this point in the history
  • Loading branch information
naegelejd committed Oct 4, 2024
1 parent 4ad3510 commit cd113f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tooling/internal/cmd/configargs.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func updatePackageInfoFromArgs(packageInfo *packaging.PackageInfo, configArgs ma
log.Info().Msgf("Overriding config key %s with value %s", key, value)
k.Set(key, value)
} else {
log.Info().Msgf("Ignoring invalid config key %s", key)
return fmt.Errorf("invalid config key %s", key)
}
}

Expand Down
2 changes: 1 addition & 1 deletion tooling/internal/cmd/validatecommand.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func newValidateCommand() *cobra.Command {

warnings, err := validateImpl(configOverrides)
if err != nil {
fmt.Fprintln(os.Stderr, err)
log.Error().Msg(err.Error())
os.Exit(1)
}
for _, warning := range warnings {
Expand Down

0 comments on commit cd113f7

Please sign in to comment.