Improved some thumb.php error messages.
authorAaron Schulz <aschulz@wikimedia.org>
Wed, 23 Jan 2013 19:11:39 +0000 (11:11 -0800)
committerAaron Schulz <aschulz@wikimedia.org>
Wed, 23 Jan 2013 19:11:44 +0000 (11:11 -0800)
Change-Id: I5a61e898dd97db67b719a13ca044530c4baecc99

thumb.php

index f59ee0f..7816860 100644 (file)
--- a/thumb.php
+++ b/thumb.php
@@ -170,11 +170,11 @@ function wfStreamThumb( array $params ) {
 
        // Check the source file storage path
        if ( !$img->exists() ) {
-               wfThumbError( 404, 'The source file for the specified thumbnail does not exist.' );
+               wfThumbError( 404, "The source file '$fileName' does not exist." );
                wfProfileOut( __METHOD__ );
                return;
        } elseif ( $img->getPath() === false ) {
-               wfThumbError( 500, 'The source file is not locally accessible.' );
+               wfThumbError( 500, "The source file '$fileName' is not locally accessible." );
                wfProfileOut( __METHOD__ );
                return;
        }