Today, Thiemo merged my patch introducing the ApiErrorReporter class: https://gerrit.wikimedia.org/r/#/c/124323/. This should help us with providing error reports from the API in a consistent manner; This way, we will hopefully soon be able to provide more localized error messages too.
However, this means that some of the error codes used by the API may have changed, and more will change when more API modules start using this module. Also, it means that localized messages are included in a slightly different way. If you rely on error codes or localized error messages, please keep an eye out for breakage in that regard.
Cheers, Daniel
Hi Daniel,
Daniel Kinzler schreef op 15-4-2014 19:16:
Today, Thiemo merged my patch introducing the ApiErrorReporter class: https://gerrit.wikimedia.org/r/#/c/124323/. This should help us with providing error reports from the API in a consistent manner; This way, we will hopefully soon be able to provide more localized error messages too.
However, this means that some of the error codes used by the API may have changed, and more will change when more API modules start using this module. Also, it means that localized messages are included in a slightly different way. If you rely on error codes or localized error messages, please keep an eye out for breakage in that regard.
Did you document this somewhere? I assume we have to modify Pywikibot a bit so would be nice to have a good overview.
Maarten
wikidata-tech@lists.wikimedia.org