mw.Upload.BookletLayout: Don't explode when the API call fails with 'exception'
authorBartosz Dziewoński <matma.rex@gmail.com>
Tue, 22 Dec 2015 15:13:25 +0000 (16:13 +0100)
committerBartosz Dziewoński <matma.rex@gmail.com>
Tue, 22 Dec 2015 15:28:24 +0000 (16:28 +0100)
commita7ab9222e975af7c9ffc49c9039abe96eb650afc
tree8b2587a200d9020bc1c7e1b6726b6ee17aad4c72
parent5fe5201f5e3e3dcc1d932c66d732009599c0a030
mw.Upload.BookletLayout: Don't explode when the API call fails with 'exception'

I just tried uploading a large file (~250 MB) and hit the timeout limit.
Since there's no 'error' key, some of our logic broke.

Change-Id: I9b9d5df5bf0db67a4d2fcc97fb886dc3c9519d5a
resources/src/mediawiki/mediawiki.Upload.BookletLayout.js