Background
The buttons were added in T326415: Add (show IP) buttons next to temporary account user name links.
In theory, clicking on a button should make a successful API call and reveal the returned IP address (unless the IP address was purged due to elapsed time, in which case it reveals "unavailable").
However, the API call may result in an error. The software should prevent most of these errors from occurring; they would usually indicate a bug.
Possible error messages include:
- "You do not have permission to perform the action" - in which case the button should not have been shown
- "You do not have permission to perform the action because your account is blocked" - in which case the button should not have been shown
- "The specified username ($1) is invalid" - which indicates a bug in building the request URL
- Various bad parameter messages - which indicate a bug in building the request URL
- Too many revisions were sent in the API request - not a software bug; user was on a long page
Question
What should be displayed if an error is encountered, if anything?