Title: requests: custom error message and log errors
Last modified: August 20, 2016

---

# requests: custom error message and log errors

 *  [jumbo](https://wordpress.org/support/users/jumbo/)
 * (@jumbo)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/requests-custom-error-message-and-log-errors/)
 * First, great plugins.
 * 1) If a user tries to register a restricted username, it’ll tell them it’s invalid.
   But I’d like to provide a custom error message, saying that the username is unavailable.
   By just saying it’s invalid, it can make the user feel they’ve entered a username
   with improper formatting, and not because the username is restricted. They could
   end up abandoning the registration process.
 * 2) It would be great if there was a log kept of failed registration attempts 
   due to invalid usernames chosen. This will help craft a better fail messsage,
   as I’d mentioned above. Currently, I don’t know how many people may be getting
   tripped up trying to register invalid usernames and/or if I may be restricting
   too many usernames. Having a log will help determine that. Also good for potential
   debugging.
 * Thanks.
 * [http://wordpress.org/extend/plugins/restrict-usernames/](http://wordpress.org/extend/plugins/restrict-usernames/)

The topic ‘requests: custom error message and log errors’ is closed to new replies.

 * ![](https://ps.w.org/restrict-usernames/assets/icon-128x128.png?rev=1095774)
 * [Restrict Usernames](https://wordpress.org/plugins/restrict-usernames/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/restrict-usernames/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/restrict-usernames/)
 * [Active Topics](https://wordpress.org/support/plugin/restrict-usernames/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/restrict-usernames/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/restrict-usernames/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [jumbo](https://wordpress.org/support/users/jumbo/)
 * Last activity: [13 years, 5 months ago](https://wordpress.org/support/topic/requests-custom-error-message-and-log-errors/)
 * Status: not resolved