From 4a9b45fbbed627fbfc27f3598de1e7dc19d086db Mon Sep 17 00:00:00 2001 From: Neil Kandalgaonkar Date: Thu, 7 Apr 2011 08:58:16 +0000 Subject: [PATCH] join() appears to be inadequate for some production errors --- includes/specials/SpecialUploadStash.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) { -- 2.20.1