mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
[Sass] Make sure the SyntaxError we catch in Script::Number#eq is for incompatible units.
This commit is contained in:
parent
a6af0865bc
commit
6a8684f229
1 changed files with 2 additions and 1 deletions
|
@ -163,7 +163,8 @@ module Sass::Script
|
|||
else
|
||||
other = other.coerce(numerator_units, denominator_units)
|
||||
end
|
||||
rescue Sass::SyntaxError
|
||||
rescue Sass::SyntaxError => e
|
||||
raise e unless e.message =~ /^Incompatible units: /
|
||||
return Sass::Script::Bool.new(false)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue