We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently if value is assigned to the same key then ValueOverwriteError error is raised without any error message:
>> TOML.parse "a = 1\na = 2" TOML::ValueOverwriteError: TOML::ValueOverwriteError
When parsing long TOML files it would be better to include more information in the error message so that the duplicate key could be located. As I see in https://github.com/emancu/toml-rb/blob/master/lib/toml/keyvalue.rb#L13 at least key could be included in the error message.
key
The text was updated successfully, but these errors were encountered:
I am not sure the example you provided should raise an error. I can't find any reference to it in the spec, and json does not raise an error either:
JSON.parse('{"a": 1, "a": 2}') │=> {"a"=>2}
Sorry, something went wrong.
TOML spec states that
You cannot define any key or table more than once.
Cool thanks I'll fix my own parser then
Bump to 0.3.4
d46588f
Closed issues #60 and #59
No branches or pull requests
Currently if value is assigned to the same key then ValueOverwriteError error is raised without any error message:
When parsing long TOML files it would be better to include more information in the error message so that the duplicate key could be located. As I see in https://github.com/emancu/toml-rb/blob/master/lib/toml/keyvalue.rb#L13 at least
key
could be included in the error message.The text was updated successfully, but these errors were encountered: