[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
1 changed files with 2 additions and 1 deletions

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