Hi! I want to express a wish here, to output the page title and/or page id to be edited in the error return of an edit conflict by API:
Editconflict return now:
{ "error": { "code": "editconflict", "info": "Edit conflict: $1", "*": "See https://test2.wikipedia.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce> for notice of API deprecations and breaking changes." }, "servedby": "mw1280" }
Wished editconflict return then:
{ "error": { "code": "editconflict", "info": "Edit conflict: $1", "*": "See https://test2.wikipedia.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce> for notice of API deprecations and breaking changes." "title": "Example", "pageid": 12345, }, "servedby": "mw1280" }
This change will be better to find or comprehend the error according to those error logs.
What is your meaning about this?
(I also subscribe the Team of WMDE Technical Wishes to seek for any help)