Skip to content

Commit

Permalink
enhance exception message
Browse files Browse the repository at this point in the history
  • Loading branch information
k0b3rIT committed Jan 8, 2025
1 parent 9d6cddb commit 3c44e2d
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,10 @@ private void sanityCheckGoalNames() {

// Ensure that default goals are supported inter-broker or intra-broker goals.
if (defaultGoalNames.stream().anyMatch(g -> !interBrokerGoalNames.contains(g) && !intraBrokerGoalNames.contains(g))) {
throw new ConfigException(String.format("Attempt to configure default goals with unsupported goals (%s:%s and %s:%s).",
throw new ConfigException(String.format("Attempt to configure default goals with unsupported goals (%s:%s and %s:%s and %s:%s).",
AnalyzerConfig.DEFAULT_GOALS_CONFIG, defaultGoalNames,
AnalyzerConfig.GOALS_CONFIG, interBrokerGoalNames));
AnalyzerConfig.GOALS_CONFIG, interBrokerGoalNames,
AnalyzerConfig.INTRA_BROKER_GOALS_CONFIG, intraBrokerGoalNames));
}

// Ensure that hard goals are contained in default goals.
Expand Down

0 comments on commit 3c44e2d

Please sign in to comment.