FIX: warn_exception expect hash as second arg (#16490)

This commit is contained in:
Joffrey JAFFEUX 2022-04-18 18:41:41 +02:00 committed by GitHub
parent 34fba417f1
commit f0d46c3549
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -258,7 +258,7 @@ module SvgSprite
}
rescue => e
name = Theme.find(child_theme_id).name rescue nil
Discourse.warn_exception(e, "#{name} theme contains a corrupt svg upload")
Discourse.warn_exception(e, message: "#{name} theme contains a corrupt svg upload")
end
end