rake: fix images:manifest failing on file permission errors.
Fix images:manifest failing with an exception when a file can't be opened because we don't have permission to access the file.
This commit is contained in:
@@ -25,8 +25,8 @@ namespace :images do
|
||||
hash = {
|
||||
path: File.absolute_path(path),
|
||||
name: File.basename(path, ".*"),
|
||||
md5: file.md5,
|
||||
size: file.file_size,
|
||||
md5: file&.md5,
|
||||
size: file&.file_size,
|
||||
error: e.message,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user