[Sass] Make sure the SyntaxError we catch in Script::Number#eq is for incompatible units.
This commit is contained in:
parent
a6af0865bc
commit
6a8684f229
|
@ -163,7 +163,8 @@ module Sass::Script
|
||||||
else
|
else
|
||||||
other = other.coerce(numerator_units, denominator_units)
|
other = other.coerce(numerator_units, denominator_units)
|
||||||
end
|
end
|
||||||
rescue Sass::SyntaxError
|
rescue Sass::SyntaxError => e
|
||||||
|
raise e unless e.message =~ /^Incompatible units: /
|
||||||
return Sass::Script::Bool.new(false)
|
return Sass::Script::Bool.new(false)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue