Wikimate
Wikimate copied to clipboard
Handle modern errors response
Wikimate currently checks for API 'error' responses, which turn out to be the legacy format. Since MW 1.29 the 'errors' response contains an array of one or more error codes/messages, if the errorformat parameter is set. We should handle this too in some flexible way. Low priority for now, as the default (even in current MW 1.37) is the legacy format.