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

Show type for ErrUnsupportedPtrType #88

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

msabramo
Copy link
Contributor

@msabramo msabramo commented May 16, 2017

This may aid in figuring out where the problematic JSON is

Before:

Pointer type in struct is not supported

After:

[jsonapi]: Can't unmarshal map[min_containers:2 max_containers:5] () to struct field `Scaling`,
which is a pointer to `Scaling` (struct), which is not a supported type

@msabramo msabramo force-pushed the show-type-for-ErrUnsupportedPtrType branch 2 times, most recently from 53b4bd0 to bdac9a4 Compare January 17, 2018 02:25
@msabramo
Copy link
Contributor Author

msabramo commented Jan 17, 2018

This will definitely conflict with #99 from @slemgrim, which is a much bigger change. I think it makes sense for that one to be merged first and then I can rebase this.

@msabramo msabramo force-pushed the show-type-for-ErrUnsupportedPtrType branch from bdac9a4 to c0336d5 Compare January 17, 2018 14:46
This may aid in figuring out where the problematic JSON is

Before:

```
Pointer type in struct is not supported
```

After:

```
Pointer (*int) in struct is not supported
```
E.g.:

```
[jsonapi unmarshalNode]: Can't unmarshal map[min_containers:2
max_containers:5] () to struct field `Scaling`, which is a pointer to
`Scaling` (struct), which is not a supported type
```
@msabramo msabramo force-pushed the show-type-for-ErrUnsupportedPtrType branch from c0336d5 to 2259d65 Compare January 17, 2018 15:12
@aren55555 aren55555 removed their assignment Sep 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants