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:
Loïc Guitaut
2025-04-09 12:04:44 +02:00
committed by Loïc Guitaut
parent 5836a9a664
commit 5e9a1a64c7

View File

@ -688,7 +688,7 @@ module DeprecatedIconHandler
if icon_name != new_name
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)