Index: trunk/phase3/includes/specials/SpecialUploadStash.php |
— | — | @@ -226,8 +226,10 @@ |
227 | 227 | $req = MWHttpRequest::factory( $scalerThumbUrl, $httpOptions ); |
228 | 228 | $status = $req->execute(); |
229 | 229 | if ( ! $status->isOK() ) { |
230 | | - $errors = $status->getWikiTextArray( $status->getErrorsArray() ); |
231 | | - throw new MWException( "Fetching thumbnail failed: " . print_r( $errors, 1 ) ); |
| 230 | + $errors = $status->getErrorsArray(); |
| 231 | + $errorStr = "Fetching thumbnail failed: " . print_r( $errors, 1 ); |
| 232 | + $errorStr .= "\nurl = $scalerThumbUrl\n"; |
| 233 | + throw new MWException( $errorStr ); |
232 | 234 | } |
233 | 235 | $contentType = $req->getResponseHeader( "content-type" ); |
234 | 236 | if ( ! $contentType ) { |
Index: branches/wmf/1.17wmf1/includes/specials/SpecialUploadStash.php |
— | — | @@ -226,8 +226,10 @@ |
227 | 227 | $req = MWHttpRequest::factory( $scalerThumbUrl, $httpOptions ); |
228 | 228 | $status = $req->execute(); |
229 | 229 | if ( ! $status->isOK() ) { |
230 | | - $errors = $status->getErrorsArray(); |
231 | | - throw new MWException( "Fetching thumbnail failed: " . print_r( $errors, 1 ) ); |
| 230 | + $errors = $status->getErrorsArray(); |
| 231 | + $errorStr = "Fetching thumbnail failed: " . print_r( $errors, 1 ); |
| 232 | + $errorStr .= "\nurl = $scalerThumbUrl\n"; |
| 233 | + throw new MWException( $errorStr ); |
232 | 234 | } |
233 | 235 | $contentType = $req->getResponseHeader( "content-type" ); |
234 | 236 | if ( ! $contentType ) { |