From e2e14960425bc64b678f22d04d094243e73e0ee4 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Mon, 1 Aug 2011 23:35:39 +0000 Subject: [PATCH] Commit live hack Commit to trunk also --- includes/specials/SpecialUploadStash.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 ) { -- 2.20.1