mirror of
https://github.com/discourse/discourse.git
synced 2025-05-29 01:31:35 +08:00
DEV: Fix the error message from the deprecated icon handler
The string was written as a JS one (using ``), but in Ruby this syntax tries to execute the string as a command on the host system.
This commit is contained in:

committed by
Loïc Guitaut

parent
5836a9a664
commit
5e9a1a64c7
@ -688,7 +688,7 @@ module DeprecatedIconHandler
|
|||||||
|
|
||||||
if icon_name != new_name
|
if icon_name != new_name
|
||||||
error_msg =
|
error_msg =
|
||||||
`Missing icon error: The icon name "#{icon_name}" has been removed and should be updated to "#{new_name}" in your code. More info at https://meta.discourse.org/t/325349.`
|
"Missing icon error: The icon name \"#{icon_name}\" has been removed and should be updated to \"#{new_name}\" in your code. More info at https://meta.discourse.org/t/325349."
|
||||||
|
|
||||||
Rails.logger.error(error_msg)
|
Rails.logger.error(error_msg)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user