Skip to content
Snippets Groups Projects
Unverified Commit f6de67e4 authored by Sébastien Gaya's avatar Sébastien Gaya Committed by GitHub
Browse files

Merge pull request #958 from noesya/fix/sass-validation

Ajouter une erreur lors de la validation du Sass Extranet
parents d8593fd0 d67b0c81
No related branches found
No related tags found
No related merge requests found
......@@ -8,6 +8,10 @@ module Communication::Extranet::WithStyle
protected
def generate_css
self.css = SassC::Engine.new(sass, syntax: :sass, style: :compressed).render
begin
self.css = SassC::Engine.new(sass, syntax: :sass, style: :compressed).render
rescue SassC::SyntaxError
errors.add(:sass, :invalid)
end
end
end
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment