Skip to content

Commit

Permalink
Improve exception message with jar mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
garyrussell authored and artembilan committed May 4, 2018
1 parent 66753f3 commit 75375f0
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -104,7 +104,9 @@ public class KafkaEmbedded extends ExternalResource implements KafkaRule, Initia
int.class, scala.Option.class, int.class, boolean.class);
}
catch (NoSuchMethodException | SecurityException e) {
throw new RuntimeException("Failed to determine TestUtils.createBrokerConfig() method");
throw new RuntimeException("Failed to determine TestUtils.createBrokerConfig() method, "
+ "possible mismatched versions of the client/broker jars; see the appendix in "
+ "the reference manual when overriding kafka-clients to version " + clientVersion);
}
}
else {
Expand Down

0 comments on commit 75375f0

Please sign in to comment.