Title: Wrong message in error code
Last modified: August 21, 2016

---

# Wrong message in error code

 *  Resolved [Gregg Franklin](https://wordpress.org/support/users/greggfranklin/)
 * (@greggfranklin)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/wrong-message-in-error-code/)
 * Stuart, I like your plugin but when the field has the wrong answer or left blank
   it responds with “ERROR: please type a comment.” This would be confusing to a
   commenter.
 * [http://wordpress.org/plugins/comment-gatekeeper/](http://wordpress.org/plugins/comment-gatekeeper/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Stuart Sequeira](https://wordpress.org/support/users/stuartsequeira/)
 * (@stuartsequeira)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/wrong-message-in-error-code/#post-4380982)
 * Hi Gregg,
 * Thanks for the feedback, and I’m glad you like it.
 * I agree with you that it’s confusing. I was trying to stick with as much of WP’s
   core functionality and I haven’t yet found a way to exit as gracefully as I would
   like using a core hook. What I’ve done for now when it fails is erase the comment
   field and then hand control back to core so it fails there. I figured it is a
   good start since the comment spam robots wouldn’t really care about the message.
 * As I continue development, I’ll test out my own kill switch inside the plugin
   but I want to make sure that if I kill it there, I’m not leaving any unresolved
   issues elsewhere.
    If it can exit without causing any other problems, I’ll be
   able to add a more user-friendly message.
 * The plugin updates should keep you posted on my progress but feel free to check
   in occasionally. Take care,
 *  Plugin Author [Stuart Sequeira](https://wordpress.org/support/users/stuartsequeira/)
 * (@stuartsequeira)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/wrong-message-in-error-code/#post-4380995)
 * Gregg,
    I went through the code and added better user-friendly error messages.
   I tested it out on one setup and will continue to do so on others. If you want
   to test it out, I uploaded it as 0.9.1. Please let me know your thoughts if you
   do decide to try it out. If it works nicely, I’ll add some filters to make it
   customizable and roll the improvements into the next stable release.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Wrong message in error code’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/comment-gatekeeper.svg)
 * [Comment Gatekeeper](https://wordpress.org/plugins/comment-gatekeeper/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/comment-gatekeeper/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/comment-gatekeeper/)
 * [Active Topics](https://wordpress.org/support/plugin/comment-gatekeeper/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/comment-gatekeeper/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/comment-gatekeeper/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Stuart Sequeira](https://wordpress.org/support/users/stuartsequeira/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/wrong-message-in-error-code/#post-4380995)
 * Status: resolved