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:
@@ -20,6 +20,8 @@ class StylesheetCache < ActiveRecord::Base
|
||||
success
|
||||
rescue ActiveRecord::RecordNotUnique
|
||||
false
|
||||
rescue PG::UniqueViolation
|
||||
false
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user