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

sql: improve error message for constraint parsing #40800

Merged
merged 1 commit into from
Sep 16, 2019

Conversation

solongordon
Copy link
Contributor

We used to throw a cryptic yaml error when zone config constraints could
not be parsed. Now we return a friendlier error message which specifies
what format was expected.

Release justification: Low-risk error messaging improvement

Release note: None

We used to throw a cryptic yaml error when zone config constraints could
not be parsed. Now we return a friendlier error message which specifies
what format was expected.

Fixes cockroachdb#39784

Release justification: Low-risk error messaging improvement

Release note: None
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@awoods187
Copy link
Contributor

Very excited for this!

Copy link
Contributor

@rohany rohany left a comment

Choose a reason for hiding this comment

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

LGTM

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @rohany)

@solongordon
Copy link
Contributor Author

bors r+

craig bot pushed a commit that referenced this pull request Sep 16, 2019
40800: sql: improve error message for constraint parsing r=solongordon a=solongordon

We used to throw a cryptic yaml error when zone config constraints could
not be parsed. Now we return a friendlier error message which specifies
what format was expected.

Release justification: Low-risk error messaging improvement

Release note: None

Co-authored-by: Solon Gordon <[email protected]>
@craig
Copy link
Contributor

craig bot commented Sep 16, 2019

Build succeeded

@craig craig bot merged commit b14a990 into cockroachdb:master Sep 16, 2019
@solongordon solongordon deleted the constraints-parse-error branch September 17, 2019 12:00
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