Remove stash handling when other errors are the problem
authorMark Holmquist <mtraceur@member.fsf.org>
Mon, 24 Nov 2014 19:24:11 +0000 (13:24 -0600)
committerMark Holmquist <mtraceur@member.fsf.org>
Mon, 24 Nov 2014 19:24:11 +0000 (13:24 -0600)
This interferes with getting the correct error message, which makes it
nearly impossible to help debug problems...

Change-Id: Ib04b897bc912065aaa4900f7904fe724ffec5385

includes/api/ApiUpload.php

index 9ddadcb..43e4c61 100644 (file)
@@ -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();
                }