Log faulty topic name during validation

Fix #157
This commit is contained in:
Marius Bogoevici
2017-06-18 11:02:19 -04:00
committed by Gary Russell
parent 9ad04882c8
commit a0f386f06f

View File

@@ -37,7 +37,8 @@ public final class KafkaTopicUtils {
if (!((b >= 'a') && (b <= 'z') || (b >= 'A') && (b <= 'Z') || (b >= '0') && (b <= '9') || (b == '.')
|| (b == '-') || (b == '_'))) {
throw new IllegalArgumentException(
"Topic name can only have ASCII alphanumerics, '.', '_' and '-'");
"Topic name can only have ASCII alphanumerics, '.', '_' and '-', but was: '" + topicName
+ "'");
}
}
}