Skip to content

go(BREAKING)!: use fmt.Errorf to wrap named errors, and use errors.Is to check#116

Merged
wenchy merged 2 commits intomasterfrom
use-fmt-errorf-to-wrap-errors
Aug 11, 2025
Merged

go(BREAKING)!: use fmt.Errorf to wrap named errors, and use errors.Is to check#116
wenchy merged 2 commits intomasterfrom
use-fmt-errorf-to-wrap-errors

Conversation

@Kybxd
Copy link
Copy Markdown
Collaborator

@Kybxd Kybxd commented Aug 1, 2025

❗BREAKING CHANGE

Package xerrors and code is removed from generated code of plugin protoc-gen-go-tableau-loader, and functions GetX and GetOrderedMapX now returns a ErrNotFound error by fmt.Errorf.

Compatibility resolution

  • If you check errors with xerrors.Is(err, code.NotFound) previously, replace it with errors.Is(err, tableau.ErrNotFound)

Comment thread test/go-tableau-loader/protoconf/loader/xerrors/xerrors.pc.go
Comment thread test/go-tableau-loader/protoconf/loader/errors.pc.go Outdated
Comment thread cmd/protoc-gen-go-tableau-loader/error.go
@wenchy wenchy changed the title feat(BREAKING!): use fmt.Errorf to wrap errors, and use errors.Is to check go(BREAKING)!: use fmt.Errorf to wrap errors, and use errors.Is to check Aug 5, 2025
@wenchy wenchy changed the title go(BREAKING)!: use fmt.Errorf to wrap errors, and use errors.Is to check go(BREAKING)!: use fmt.Errorf to wrap named errors, and use errors.Is to check Aug 5, 2025
@wenchy wenchy merged commit 6801758 into master Aug 11, 2025
@wenchy wenchy deleted the use-fmt-errorf-to-wrap-errors branch August 11, 2025 02:23
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.

go(BREAKING)!: improve error implmentation

2 participants