-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
roachpb: remove deprecated fields from Error
CRDB 21.2 already populates `Errors.EncodedError`, so we can remove the deprecated fields. I was motivated by this when working on a follow-up to #73602 and ended up trying to marshal an `Error` to JSON, which panics since it ends up trying to use `reflect` to get an unexported value (due to the `customname` tags on the deprecated fields). This behavior persists even with the `json: "-"` tag, by the way, indicating that we should never use `(gogoproto.customname)` to make a field private. It's also just one more papercut that comes with using `gogoproto` but that's a much bigger fish to fry. Release note: None
- Loading branch information
Showing
5 changed files
with
296 additions
and
492 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.