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

feat: create a wrapper for errors #3723

Merged
merged 77 commits into from
Dec 13, 2023
Merged

feat: create a wrapper for errors #3723

merged 77 commits into from
Dec 13, 2023

Conversation

Pantani
Copy link
Collaborator

@Pantani Pantani commented Nov 1, 2023

close #3237

Description

This PR creates a xerrors package to wrap the cockroachdb error pkg. We can easily manage and maintain the application errors. In case to change or improve the pkg, we only need to change one file

@Pantani Pantani marked this pull request as ready for review November 1, 2023 01:10
go.mod Outdated Show resolved Hide resolved
ignite/pkg/xerrors/xerrors.go Outdated Show resolved Hide resolved
@Pantani Pantani requested a review from julienrbrt November 7, 2023 01:15
changelog.md Outdated Show resolved Hide resolved
@Pantani Pantani dismissed stale reviews from Ehsan-saradar and jeronimoalbi via 7f804ec December 8, 2023 20:22
julienrbrt
julienrbrt previously approved these changes Dec 8, 2023
Copy link
Member

@julienrbrt julienrbrt left a comment

Choose a reason for hiding this comment

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

lgtm!

julienrbrt
julienrbrt previously approved these changes Dec 12, 2023
Copy link
Member

@julienrbrt julienrbrt left a comment

Choose a reason for hiding this comment

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

lgtm!

@Pantani Pantani requested a review from julienrbrt December 12, 2023 21:31
@julienrbrt
Copy link
Member

Just merged the bump PR, I think you'll need to fix the changelog again here. Sorry 😀

Copy link

codecov bot commented Dec 12, 2023

Codecov Report

Merging #3723 (7a0a3bc) into main (c8c9f8e) will increase coverage by 0.00%.
The diff coverage is 25.59%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #3723   +/-   ##
=======================================
  Coverage   24.31%   24.32%           
=======================================
  Files         292      293    +1     
  Lines       24532    24538    +6     
=======================================
+ Hits         5966     5968    +2     
- Misses      18030    18033    +3     
- Partials      536      537    +1     
Files Coverage Δ
ignite/cmd/account_import.go 0.00% <ø> (ø)
ignite/cmd/chain_debug.go 0.00% <ø> (ø)
ignite/cmd/chain_serve.go 0.00% <ø> (ø)
ignite/cmd/node_query.go 0.00% <ø> (ø)
ignite/cmd/relayer.go 0.00% <ø> (ø)
ignite/cmd/relayer_configure.go 0.00% <ø> (ø)
ignite/cmd/scaffold.go 0.00% <ø> (ø)
ignite/cmd/scaffold_band.go 0.00% <ø> (ø)
ignite/cmd/scaffold_chain.go 0.00% <ø> (ø)
ignite/cmd/scaffold_package.go 0.00% <ø> (ø)
... and 107 more

changelog.md Outdated Show resolved Hide resolved
@ilgooz ilgooz merged commit 1b08ba3 into main Dec 13, 2023
43 checks passed
@ilgooz ilgooz deleted the feat/xerrors branch December 13, 2023 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unify error wrapping
7 participants