Displaying missing image filenames during product imports (Magento 1)

The import tells you when images are missing, but does not identify which images. If you override app\code\core\Mage\Catalog\Model\Product\Attribute\Backend\Media.php and make the following changes to the addImage function, the missing images will be displayed. Find:

Change it to:

Now…