[fix bug 1016914] Show error messages when casting a vote.