]> git.openstreetmap.org Git - rails.git/blobdiff - lib/bounding_box.rb
Check required bbox parameter presence outside of BoundingBox class
[rails.git] / lib / bounding_box.rb
index 9eba0a8311911d4bcb842dbcaa0889a339f75343..0cc4c5fd432e3ceae3d388aa5687d927e8773d33 100644 (file)
@@ -157,7 +157,7 @@ class BoundingBox
     private
 
     def from_bbox_array(bbox_array)
-      raise OSM::APIBadUserInput, "The parameter bbox is required, and must be of the form min_lon,min_lat,max_lon,max_lat" unless bbox_array
+      raise OSM::APIBadUserInput, "The parameter bbox must be of the form min_lon,min_lat,max_lon,max_lat" unless bbox_array
 
       # Take an array of length 4, create a bounding box with min_lon, min_lat, max_lon and
       # max_lat within their respective boundaries.