https://bugzilla.wikimedia.org/show_bug.cgi?id=54366
Web browser: ---
Bug ID: 54366
Summary: no-external-page error should provide machine readable
error info
Product: MediaWiki extensions
Version: unspecified
Hardware: All
URL: https://test.wikidata.org/wiki/Special:ApiSandbox#acti
on=wbeditentity&format=json&token=TOKEN&data={%22sitel
inks%22%3A%20{%22enwiki%22%3A%20{%22site%22%3A%20%22en
wiki%22%2C%20%22title%22%3A%20%22Main%20Page%22}%2C%20
%22enwikivoyage%22%3A%20{%22site%22%3A%20%22enwikivoya
ge%22%2C%20%22title%22%3A%20%22Main%20Pageddd%22}}}&ne
w=item
OS: All
Status: NEW
Severity: enhancement
Priority: Unprioritized
Component: WikidataRepo
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected],
[email protected]
Blocks: 39174
Classification: Unclassified
Mobile Platform: ---
When a sitelink is already in use, action=editentity gives a nice
machine-readable error message like:
"messages": {
"0": {
"name": "wikibase-error-sitelink-already-used",
"type": "error",
"parameters": [
"http://en.wikivoyage.org/wiki/Main_Page",
"Main Page",
"Q33",
"enwikivoyage"
]
},
on the other hand, no-external-page (can test with a non-existent page) gives:
{
"servedby": "mw1208",
"error": {
"code": "no-external-page",
"info": "The external client site did not provide page information for
site 'enwikivoyage' and title 'Main Pageddd'"
}
}
It would be nice if we got the same level of detail for all errors.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l