SmileyChris / easy-thumbnails

Easy thumbnails for Django

Home Page:http://easy-thumbnails.readthedocs.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Report a file path of errored image

milonline-eu opened this issue · comments

raise exceptions.InvalidImageFormatError(

When a file is not available it would be very nice to get the information what path/file is a problem. Something like:
if self.file:
raise exceptions.InvalidImageFormatError(
"The source file does not appear to be an image".format(self.file.path))
else:
raise exceptions.InvalidImageFormatError(
"The source file does not appear to be an image")