mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 20:44:10 +08:00
FEATURE: group error message regarding image optimization failures
This commit is contained in:
parent
168ffd8384
commit
83fd308963
@ -255,7 +255,7 @@ class OptimizedImage < ActiveRecord::Base
|
|||||||
if opts[:raise_on_error]
|
if opts[:raise_on_error]
|
||||||
raise e
|
raise e
|
||||||
else
|
else
|
||||||
Rails.logger.error("Could not optimize image #{to}: #{e.message}")
|
Discourse.warn("Failed to optimize image", location: to, error_message: e.message)
|
||||||
false
|
false
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user