give path when not able to write the thumb
authorAntoine Musso <hashar@free.fr>
Sun, 20 May 2012 01:42:32 +0000 (03:42 +0200)
committerAntoine Musso <hashar@free.fr>
Sun, 20 May 2012 01:42:32 +0000 (03:42 +0200)
Change-Id: I970da631b4263b658c2c071a4c10b155100e53fc

includes/filerepo/ForeignAPIRepo.php

index 5fab3ab..0b63dd7 100644 (file)
@@ -292,7 +292,7 @@ class ForeignAPIRepo extends FileRepo {
                $op = array( 'op' => 'create', 'dst' => $localFilename, 'content' => $thumb );
                if( !$backend->doOperation( $op )->isOK() ) {
                        wfRestoreWarnings();
-                       wfDebug( __METHOD__ . " could not write to thumb path\n" );
+                       wfDebug( __METHOD__ . " could not write to thumb path '$localFilename'\n" );
                        return $foreignUrl;
                }
                $knownThumbUrls[$sizekey] = $localUrl;