You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
to throw Ingreedy::ParseFailed rather than NoMethodError
/home/mateusz/.gem/ruby/2.3.0/gems/ingreedy-0.1.0/lib/ingreedy/unit_variation_mapper.rb:31:in `unit_from_variation': undefined method `first' for nil:NilClass (NoMethodError)
from /home/mateusz/.gem/ruby/2.3.0/gems/ingreedy-0.1.0/lib/ingreedy/ingreedy_parser.rb:55:in `convert_unit_variation_to_canonical'
from /home/mateusz/.gem/ruby/2.3.0/gems/ingreedy-0.1.0/lib/ingreedy/ingreedy_parser.rb:39:in `parse'
from /home/mateusz/.gem/ruby/2.3.0/gems/ingreedy-0.1.0/lib/ingreedy.rb:16:in `parse'
The text was updated successfully, but these errors were encountered:
I would expect
to throw Ingreedy::ParseFailed rather than NoMethodError
The text was updated successfully, but these errors were encountered: