Skip to content
New issue

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

Decode: don't panic when storing table in slice #641

Merged
merged 1 commit into from
Oct 25, 2021
Merged

Decode: don't panic when storing table in slice #641

merged 1 commit into from
Oct 25, 2021

Conversation

pelletier
Copy link
Owner

New error message:

toml: cannot store a table in a slice
1| [things]
 |  ~~~~~~ cannot store a table in a slice
2| foo = "bar"

Fixes #623.

New error message:

```
toml: cannot store a table in a slice
1| [things]
 |  ~~~~~~ cannot store a table in a slice
2| foo = "bar"
```
@pelletier pelletier merged commit d0d0016 into v2 Oct 25, 2021
@pelletier pelletier deleted the issue-623 branch October 25, 2021 20:47
@pelletier pelletier changed the title unmarshal: don't panic when storing table in slice Decode: don't panic when storing table in slice Oct 28, 2021
@pelletier pelletier added the bug Issues describing a bug in go-toml. label Oct 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues describing a bug in go-toml.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant