From: Neil Kandalgaonkar Date: Thu, 7 Apr 2011 08:58:16 +0000 (+0000) Subject: join() appears to be inadequate for some production errors X-Git-Tag: 1.31.0-rc.0~30983 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=4a9b45fbbed627fbfc27f3598de1e7dc19d086db;p=lhc%2Fweb%2Fwiklou.git join() appears to be inadequate for some production errors --- diff --git a/includes/specials/SpecialUploadStash.php b/includes/specials/SpecialUploadStash.php index 9f14c5feab..901eceaf65 100644 --- a/includes/specials/SpecialUploadStash.php +++ b/includes/specials/SpecialUploadStash.php @@ -231,7 +231,7 @@ class SpecialUploadStash extends UnlistedSpecialPage { $status = $req->execute(); if ( ! $status->isOK() ) { $errors = $status->getWikiTextArray( $status->getErrorsArray() ); - throw new MWException( "Fetching thumbnail failed: " . join( ", ", $errors ) ); + throw new MWException( "Fetching thumbnail failed: " . print_r( $errors, 1 ) ); } $contentType = $req->getResponseHeader( "content-type" ); if ( ! $contentType ) {