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

Set more precise error code for parsing errors in proj_create(). #3037

Merged
merged 1 commit into from
Feb 4, 2022

Conversation

direvus
Copy link
Contributor

@direvus direvus commented Feb 4, 2022

If proj_create() catches a ParsingException, and the error code hasn't
otherwise been set internally, set the error code to
PROJ_ERR_INVALID_OP_WRONG_SYNTAX instead of allowing it to default to
the generic PROJ_ERR_OTHER.

Ref #2529

  • Closes #xxxx
  • Tests added (modified existing test)
  • Added clear title that can be used to generate release notes

If proj_create() catches a ParsingException, and the error code hasn't
otherwise been set internally, set the error code to
PROJ_ERR_INVALID_OP_WRONG_SYNTAX instead of allowing it to default to
the generic PROJ_ERR_OTHER.

Ref OSGeo#2529
@rouault rouault added this to the 9.0.0 milestone Feb 4, 2022
@rouault rouault merged commit 0139d8c into OSGeo:master Feb 4, 2022
@direvus direvus deleted the 2529-err-code-unknown-format branch March 18, 2022 03:32
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.

2 participants