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

Throw exceptions instead of errors in stringToArray #280

Merged
merged 4 commits into from
Mar 27, 2023

Conversation

MelReyCG
Copy link
Contributor

@MelReyCG MelReyCG commented Mar 23, 2023

This PR aims to:

  • Throw exceptions from LvArray::input::stringToArray() instead of errors. This will help to add context to these parsing errors by catching these exceptions, as a lot of parsing function & method propose to.
  • Detect when a token is missing before a '}'
  • Slightly reformulate some error messages and add one when a comma is placed just before the ending brace.

GEOS Issue related: #2320
GEOS PR : #2357

@MelReyCG MelReyCG requested review from corbett5 and wrtobin March 23, 2023 17:16
Copy link
Collaborator

@corbett5 corbett5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@MelReyCG MelReyCG merged commit 9dd078b into develop Mar 27, 2023
@MelReyCG MelReyCG deleted the bugfix/rey/2320-xml-errors-feedback-3 branch March 27, 2023 14:24
@TotoGaz
Copy link
Contributor

TotoGaz commented Apr 14, 2023

@corbett5 @rrsettgast
Can you put the appropriate protections in place such that
image
does not happen anymore? I'm upgrading LvArray as a submodule and I'm impacted by this premature merge.

TotoGaz added a commit to GEOS-DEV/GEOS that referenced this pull request Apr 14, 2023
@rrsettgast
Copy link
Member

@corbett5 @rrsettgast
Can you put the appropriate protections in place such that
image
does not happen anymore? I'm upgrading LvArray as a submodule and I'm impacted by this premature merge.

?? There we no limitations on who could merge a PR. They are in place now.

@TotoGaz
Copy link
Contributor

TotoGaz commented Apr 14, 2023

I'm not sure there are many protections on submodules.

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.

4 participants