1
0
Fork 0
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:
Nathan Weizenbaum 2009-06-29 00:58:01 -07:00
parent a6af0865bc
commit 6a8684f229

View file

@ -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