mediawiki.api: Don't log request error 'abort'
authorTimo Tijhof <krinklemail@gmail.com>
Wed, 7 May 2014 17:58:56 +0000 (19:58 +0200)
committerTimo Tijhof <krinklemail@gmail.com>
Wed, 7 May 2014 17:58:56 +0000 (19:58 +0200)
commit173930cb32ba1a72a82474f927ec460b0baab834
treecb81944062f7cc52b0e50ffa1b2f98d53640dbc2
parente404c01589ee4c78f29998e7b72327a0c54421b0
mediawiki.api: Don't log request error 'abort'

Not really an error, but that's outside of our control. This
change doesn't affect the actual Promise object. Callers will
still get this through the error handler.

If the request was aborted by the caller of mw.Api#ajax, there
is no need to log this to the console. Only pollutes it with
garbage.

This was rather visible when browsing with debug=true and e.g.
using search suggestions (and typing faster than requests are
dispatched and completed).

If a caller really wants to log this, they can easily do so from
their error handler.

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