Let mw.Api recognize errorformat!=bc
authorMatthias Mullie <git@mullie.eu>
Thu, 8 Dec 2016 17:05:23 +0000 (18:05 +0100)
committerMatthias Mullie <git@mullie.eu>
Thu, 8 Dec 2016 19:13:53 +0000 (20:13 +0100)
commit2ee4ecb1188f81a9c381e92cec4e20badfb3223e
treee0827466834d9cdd133feec704c28ffb30258b31
parent87bfd03d13ce0cc0cdd1d93538b3c42cbf628d29
Let mw.Api recognize errorformat!=bc

Iae0e2ce3bd42dd4776a9779664086119ac188412 introduced a new
API error format where, in case of error, there is no
'error' property in the response, but an 'errors'.
mw.Api doesn't recognize those as errors and just resolves
the deferred, instead of rejecting it.

Change-Id: I4c05ef7d7574e2ca538170609fab85d8463b7b68
resources/src/mediawiki/api.js