lib/osm/term.rb in osm-1.2.0 vs lib/osm/term.rb in osm-1.2.1
- old
+ new
@@ -112,10 +112,10 @@
return nil if terms.nil?
terms.each do |term|
return term if term.current?
end
- raise Osm::Error::NoCurrentTerm, 'There is no current term for the section.'
+ raise Osm::Error::NoCurrentTerm.new('There is no current term for the section.', section_id)
end
# Create a term in OSM
# @param [Osm::Api] api The api to use to make the request
# @param [Hash] options - the configuration of the new term