Add better error handling, correct the location on disk of stylesheet

This commit is contained in:
Sam
2015-05-05 23:28:19 +10:00
parent eb244bac34
commit ea670118c1
3 changed files with 8 additions and 2 deletions

View File

@@ -20,6 +20,8 @@ class StylesheetCache < ActiveRecord::Base
success
rescue ActiveRecord::RecordNotUnique
false
rescue PG::UniqueViolation
false
end
end