mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 10:20:58 -06:00
FIX: Avoid logging a warn for 404s.
This commit is contained in:
parent
f74565f23b
commit
25453eb922
@ -32,6 +32,8 @@ module JsonError
|
||||
return { errors: [message] } if message.present?
|
||||
end
|
||||
|
||||
return { errors: [I18n.t('not_found')] } if obj.not_found
|
||||
|
||||
# Log a warning (unless obj is nil)
|
||||
Rails.logger.warn("create_errors_json called with unrecognized type: #{obj.inspect}") if obj
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user