https://bugzilla.wikimedia.org/show_bug.cgi?id=18602
Summary: info vs code reversed in api error message
Product: MediaWiki
Version: 1.14.0
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: Normal
Component: API
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
i was writing a bit of code to do a purge via the api, and i got an error
message (which is unrelated to my problem)
array(1) {
["error"]=>
array(2) {
["code"]=>
string(61) "Only users with the 'purge' right can purge pages via the API"
["info"]=>
string(9) "cantpurge"
}
}
i noticed that the error code is in the info key, and the info string is the in
code key.
does not seem to be related to the ApiPurge code, as i checked the debug from
my apiwrite save page code, and i'm getting the same flipped format of error
message
array(1) {
["error"]=>
array(2) {
["code"]=>
string(61) "You're not allowed to edit pages in the ``Article'' namespace"
["info"]=>
string(18) "protectednamespace"
}
}
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- 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