mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Add better error handling, correct the location on disk of stylesheet
This commit is contained in:
@@ -89,7 +89,11 @@ class DiscourseStylesheets
|
||||
File.open(stylesheet_fullpath, "w") do |f|
|
||||
f.puts css
|
||||
end
|
||||
StylesheetCache.add(@target, digest, css)
|
||||
begin
|
||||
StylesheetCache.add(@target, digest, css)
|
||||
rescue => e
|
||||
Rails.logger.warn "Completely unexpected error adding item to cache #{e}"
|
||||
end
|
||||
css
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user