Skip to content

A platform for community discussion. Free, open, simple.

DEV: Incorrect name in precompile output. (#13602)

Alan Guo Xiang Tan3312e09d02b4
diff --git a/lib/stylesheet/manager.rb b/lib/stylesheet/manager.rb
index 3df9a0b0723..e5c3f4c7750 100644
--- a/lib/stylesheet/manager.rb
+++ b/lib/stylesheet/manager.rb
@@ -76,10 +76,11 @@ class Stylesheet::Manager
compiled << "#{target}_#{theme.id}"
end
else
- $stderr.puts "precompile target: #{target} #{name}"
+ theme = manager.get_theme(theme_id)
+ $stderr.puts "precompile target: #{target} #{theme&.name}"
Stylesheet::Manager::Builder.new(
- target: target, theme: manager.get_theme(theme_id), manager: manager
+ target: target, theme: theme, manager: manager
).compile(force: true)
end
end