GitHub user scholzj opened a pull request: https://github.com/apache/kafka/pull/3955
KAFKA-5969: Use correct error message when the JSON file is invalid When invalid JSON file is passed to the bin/kafka-preferred-replica-election.sh / PreferredReplicaLeaderElectionCommand tool it gives a misleading error `Preferred replica election data is empty`. This PR replaces it with the correct error message. You can merge this pull request into a Git repository by running: $ git pull https://github.com/scholzj/kafka KAFKA-5969 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/kafka/pull/3955.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #3955 ---- commit 45bd0251c02b0d960e015b6f626323ba2eeb413c Author: Jakub Scholz <w...@scholzj.com> Date: 2017-09-25T09:11:57Z Use correct error message when the JSON file is invalid ---- ---