Closed berkes closed 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>.
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)
can't read current token Token(value: +, type: string, start_index: 17)
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)