From 8e96834ce40d68a8b9966230f94f2e9c61b2e0a2 Mon Sep 17 00:00:00 2001 From: Mark Holmquist Date: Mon, 24 Nov 2014 13:24:11 -0600 Subject: [PATCH] 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 --- includes/api/ApiUpload.php | 2 -- 1 file changed, 2 deletions(-) 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(); } -- 2.20.1