API: Improve upload error reporting
authorBrad Jorsch <bjorsch@wikimedia.org>
Fri, 10 Jul 2015 13:31:04 +0000 (09:31 -0400)
committerBrad Jorsch <bjorsch@wikimedia.org>
Fri, 10 Jul 2015 13:31:04 +0000 (09:31 -0400)
commit11893e476189ede8db3df9b21e8d369671b53a19
tree1b85b011d2adb3e90f07d6aabf169e8ec91cd89b
parent015aa26bbb2d0f59b7f03c87fe8a04cde225e5b9
API: Improve upload error reporting

* Include the detailed message text in the error for verification-error and
  hookaborted
* Actually return the raw "details" for hookaborted and unknown-error
  (previously it was colliding with the standard "error" and "code"
  elements).

Bug: T105224
Change-Id: I13b7b6ad02fbbf46bf3d6b4c683493b2fecf8c58
includes/api/ApiUpload.php