After T263407: Create Widget for displaying data asynchronously, display an error if the API returns an error or malformed data.
Description
Details
- Due Date
- Oct 6 2020, 4:00 AM
| Subject | Repo | Branch | Lines +/- | |
|---|---|---|---|---|
| Display error returned from API in IPInfo widget | mediawiki/extensions/IPInfo | master | +50 -18 |
| Status | Subtype | Assigned | Task | ||
|---|---|---|---|---|---|
| Resolved | Tchanders | T263409 Display pending element and error message on the IPInfo popup, where appropriate | |||
| Resolved | dbarratt | T263407 Create Widget for displaying data asynchronously |
Event Timeline
@Prtksxna How do you think the error looks, with the MessageWidget (type: error) styling?
Same thing, with inline: true:
Change 632507 had a related patch set uploaded (by Tchanders; owner: Tchanders):
[mediawiki/extensions/IPInfo@master] WIP Display error returned from API in IPInfo widget
Note that the error messages will be displayed in the content language (or fallback languages if that isn't available), rather than the user language, until T264777.
Change 632507 merged by jenkins-bot:
[mediawiki/extensions/IPInfo@master] Display error returned from API in IPInfo widget
We now display the error message returned by the API, for example:
If there is some other problem (e.g. the connection to the API is blocked), it returns a generic error message:



