From: Mark Holmquist Date: Mon, 24 Nov 2014 19:24:11 +0000 (-0600) Subject: Remove stash handling when other errors are the problem X-Git-Tag: 1.31.0-rc.0~13181^2 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/password.php?a=commitdiff_plain;h=8e96834ce40d68a8b9966230f94f2e9c61b2e0a2;p=lhc%2Fweb%2Fwiklou.git Remove stash handling when other errors are the problem This interferes with getting the correct error message, which makes it nearly impossible to help debug problems... Change-Id: Ib04b897bc912065aaa4900f7904fe724ffec5385 --- diff --git a/includes/api/ApiUpload.php b/includes/api/ApiUpload.php index 9ddadcb0b7..43e4c61e0c 100644 --- a/includes/api/ApiUpload.php +++ b/includes/api/ApiUpload.php @@ -182,8 +182,6 @@ class ApiUpload extends ApiBase { try { $result['filekey'] = $this->performStash(); $result['sessionkey'] = $result['filekey']; // backwards compatibility - } catch ( UploadStashException $e ) { - $this->handleStashException( $e ); } catch ( MWException $e ) { $result['warnings']['stashfailed'] = $e->getMessage(); }