From: Sam Reed Date: Mon, 1 Aug 2011 23:35:39 +0000 (+0000) Subject: Commit live hack X-Git-Tag: 1.31.0-rc.0~28505 X-Git-Url: https://git.heureux-cyclage.org/?a=commitdiff_plain;h=e2e14960425bc64b678f22d04d094243e73e0ee4;p=lhc%2Fweb%2Fwiklou.git Commit live hack Commit to trunk also --- diff --git a/includes/specials/SpecialUploadStash.php b/includes/specials/SpecialUploadStash.php index eae6265e62..20a37f0b3b 100644 --- a/includes/specials/SpecialUploadStash.php +++ b/includes/specials/SpecialUploadStash.php @@ -226,8 +226,10 @@ class SpecialUploadStash extends UnlistedSpecialPage { $req = MWHttpRequest::factory( $scalerThumbUrl, $httpOptions ); $status = $req->execute(); if ( ! $status->isOK() ) { - $errors = $status->getWikiTextArray( $status->getErrorsArray() ); - throw new MWException( "Fetching thumbnail failed: " . print_r( $errors, 1 ) ); + $errors = $status->getErrorsArray(); + $errorStr = "Fetching thumbnail failed: " . print_r( $errors, 1 ); + $errorStr .= "\nurl = $scalerThumbUrl\n"; + throw new MWException( $errorStr ); } $contentType = $req->getResponseHeader( "content-type" ); if ( ! $contentType ) {