Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Applying raise vs. throw patch

git-svn-id: http://geokit.rubyforge.org/svn/trunk@47 9265c765-0211-4c68-b2df-6d1bd6e20c4d
  • Loading branch information...
commit 414ad4264295214d658dabe1787e94a6d893a350 1 parent e65a8ed
bill_eisenhauer authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/geo_kit/mappable.rb
View
4 lib/geo_kit/mappable.rb
@@ -258,7 +258,7 @@ def self.normalize(thing,other=nil)
return thing.to_lat_lng
end
- throw ArgumentError.new("#{thing} (#{thing.class}) cannot be normalized to a LatLng. We tried interpreting it as an array, string, Mappable, etc., but no dice.")
+ raise ArgumentError.new("#{thing} (#{thing.class}) cannot be normalized to a LatLng. We tried interpreting it as an array, string, Mappable, etc., but no dice.")
end
end
@@ -429,4 +429,4 @@ def normalize (thing,other=nil)
end
end
end
-end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.