Skip to content

sql/schemachanger/scbuild: minor cleanup#84155

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
ajwerner:ajwerner/minor-builder-cleanup
Jul 11, 2022
Merged

sql/schemachanger/scbuild: minor cleanup#84155
craig[bot] merged 1 commit intocockroachdb:masterfrom
ajwerner:ajwerner/minor-builder-cleanup

Conversation

@ajwerner
Copy link
Copy Markdown
Contributor

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

Release note: None

@cockroach-teamcity
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

TFTR!

bors r+

@craig
Copy link
Copy Markdown
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