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/schemachanger/scbuild: minor cleanup #84155

Merged
merged 1 commit into from
Jul 11, 2022

Conversation

ajwerner
Copy link
Contributor

Improves the error handling a tad to make runtime errors and assertion failure.
Fixes a typo.

Release note: None

@cockroach-teamcity
Copy link
Member

This change is Reviewable

Improves the error handling a tad to make runtime errors and assertion failure.
Fixes a typo. Improves testing output.

Release note: None
@ajwerner ajwerner force-pushed the ajwerner/minor-builder-cleanup branch from d3592c3 to 6ea2cce Compare July 10, 2022 15:54
@ajwerner ajwerner marked this pull request as ready for review July 10, 2022 17:36
@ajwerner ajwerner requested a review from a team July 10, 2022 17:36
case nil:
// No error.
case runtime.Error:
err = errors.WithAssertionFailure(recErr)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The nice thing about this is that it gives us a stack trace in the case of a nil pointer panic.

Copy link
Contributor

@chengxiong-ruan chengxiong-ruan left a comment

Choose a reason for hiding this comment

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

💯

@ajwerner
Copy link
Contributor Author

TFTR!

bors r+

@craig
Copy link
Contributor

craig bot commented Jul 11, 2022

Build succeeded:

@craig craig bot merged commit c16f589 into cockroachdb:master Jul 11, 2022
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