join() appears to be inadequate for some production errors
authorNeil Kandalgaonkar <neilk@users.mediawiki.org>
Thu, 7 Apr 2011 08:58:16 +0000 (08:58 +0000)
committerNeil Kandalgaonkar <neilk@users.mediawiki.org>
Thu, 7 Apr 2011 08:58:16 +0000 (08:58 +0000)
includes/specials/SpecialUploadStash.php

index 9f14c5f..901ecea 100644 (file)
@@ -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 ) {