Skip to content

Commit

Permalink
feat: Improve TopicName.parse ValidationException message
Browse files Browse the repository at this point in the history
The formattedString param's value should also be part of the ValidationException's message
  • Loading branch information
SimonScholz committed Feb 25, 2023
1 parent 1ec91eb commit ef4c5f3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ public static TopicName parse(String formattedString) {
} else if (DELETED_TOPIC.equals(formattedString)) {
return new TopicName("_deleted-topic_");
}
throw new ValidationException("TopicName.parse: formattedString not in valid format");
throw new ValidationException(
"TopicName.parse: formattedString (%s) not in valid format", formattedString);
}

public static List<TopicName> parseList(List<String> formattedStrings) {
Expand Down

0 comments on commit ef4c5f3

Please sign in to comment.