mirror of
https://github.com/Hopiu/django-imagekit.git
synced 2026-04-10 16:30:58 +00:00
Correct error message
This commit is contained in:
parent
aae6aeb142
commit
044a3625f9
1 changed files with 11 additions and 8 deletions
|
|
@ -60,15 +60,18 @@ class ImageCacheFile(BaseIKFile, ImageFile):
|
|||
actual_name = self.storage.save(self.name, content)
|
||||
|
||||
if actual_name != self.name:
|
||||
get_logger().warning('The storage backend %s did not save the file'
|
||||
' with the requested name ("%s") and instead used'
|
||||
' "%s". This may be because a file already existed with'
|
||||
' the requested name. If so, you may have meant to call'
|
||||
' ensure_exists() instead of generate(), or there may be a'
|
||||
' race condition in the file backend %s. The saved file'
|
||||
' will not be used.' % (self.storage,
|
||||
get_logger().warning(
|
||||
'The storage backend %s did not save the file with the'
|
||||
' requested name ("%s") and instead used "%s". This may be'
|
||||
' because a file already existed with the requested name. If'
|
||||
' so, you may have meant to call generate() instead of'
|
||||
' generate(force=True), or there may be a race condition in the'
|
||||
' file backend %s. The saved file will not be used.' % (
|
||||
self.storage,
|
||||
self.name, actual_name,
|
||||
self.cachefile_backend))
|
||||
self.cachefile_backend
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
class LazyImageCacheFile(LazyObject):
|
||||
|
|
|
|||
Loading…
Reference in a new issue