Skip to content

sqlbase: fix invalid uses of pgerorr.NewErrorf#35824

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
knz:20190316-fix-errors
Mar 16, 2019
Merged

sqlbase: fix invalid uses of pgerorr.NewErrorf#35824
craig[bot] merged 1 commit intocockroachdb:masterfrom
knz:20190316-fix-errors

Conversation

@knz
Copy link
Copy Markdown
Contributor

@knz knz commented Mar 16, 2019

This goes alongside #35821.
It's not valid to pass an opaque string as the format argument of a formatting function.

Also, wrap long lines.

Release note: None

@knz knz requested review from a team, andreimatei and andy-kimball March 16, 2019 13:02
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

Copy link
Copy Markdown
Contributor

@andy-kimball andy-kimball 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! 1 of 0 LGTMs obtained (waiting on @andreimatei and @andy-kimball)

@knz
Copy link
Copy Markdown
Contributor Author

knz commented Mar 16, 2019

TFYR!

bors r+

craig bot pushed a commit that referenced this pull request Mar 16, 2019
35824: sqlbase: fix invalid uses of `pgerorr.NewErrorf` r=knz a=knz

This goes alongside #35821.
It's not valid to pass an opaque string as the `format` argument of a formatting function.

Also, wrap long lines.

Release note: None

Co-authored-by: Raphael 'kena' Poss <knz@cockroachlabs.com>
Copy link
Copy Markdown
Contributor

@andreimatei andreimatei left a comment

Choose a reason for hiding this comment

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

points if you make a pgerror.NewError().

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

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Mar 16, 2019

Build succeeded

@knz
Copy link
Copy Markdown
Contributor Author

knz commented Mar 16, 2019

points if you make a pgerror.NewError()

it was already there.

@craig craig bot merged commit 7bfb2f9 into cockroachdb:master Mar 16, 2019
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