Publidata / opening_hours_converter

OpenStreetMap Opening Hours to Date & Date to Opening Hours
https://rubygems.org/gems/opening_hours_converter
GNU Affero General Public License v3.0
12 stars 3 forks source link

Add sensible to_s to make errors readable #43

Closed berkes closed 4 years ago

berkes commented 4 years ago

Lots of parsing errors use "token" but token has no to_s so the errors are often quite useless.

E.g. can't read current token #<OpeningHoursConverter::Token:0x00007faac847fa48>.

This fixes that and makes it can't read current token Token(value: +, type: string, start_index: 17)