Skip to content

Commit

Permalink
Change reason to string
Browse files Browse the repository at this point in the history
  • Loading branch information
NickNeck committed Sep 14, 2024
1 parent db7c1e7 commit 0e856b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/time_zone_info/iana_parser/helper.ex
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ defmodule TimeZoneInfo.IanaParser.Helper do

case values do
[value] -> {rest, [value], context}
[] -> {:error, :invalid}
[_ | _] -> {:error, :ambiguous}
[] -> {:error, "invalid word #{inspect(string)}, expected one of #{inspect(map)}"}
[_ | _] -> {:error, "ambiguous word #{inspect(string)}, expected one of #{inspect(map)}"}
end
end

Expand Down

0 comments on commit 0e856b6

Please sign in to comment.