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

Gracefully handle case where Feature is passed to FeatureIterator #195

Open
frewsxcv opened this issue Jun 4, 2022 · 1 comment
Open

Comments

@frewsxcv
Copy link
Member

frewsxcv commented Jun 4, 2022

See https://github.com/georust/geojson/compare/frewsxcv-test-test?expand=1

This test fails with:

called `Result::unwrap()` on an `Err` value: Custom { kind: InvalidData, error: Error("invalid type: floating point `1`, expected a map", line: 1, column: 4) }
@frewsxcv
Copy link
Member Author

frewsxcv commented Jun 4, 2022

This should either return a better error, or we should gracefully handle cases where the user passes in something that isn't a feature collection

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

No branches or pull requests

1 participant