Skip to content

Commit

Permalink
Improve TopicName.parse ValidationException message
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonScholz committed Feb 25, 2023
1 parent 1ec91eb commit 971dd8d
Showing 1 changed file with 2 additions and 1 deletion.
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 971dd8d

Please sign in to comment.