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

fix(tm2): better error on AddPackage when package already exists #920

Merged
merged 1 commit into from
Jun 27, 2023

Conversation

tbruyelle
Copy link
Contributor

Description

Instead of 'internal error' and a long stack trace, now we have an understandable output 'package already exists: pkg/name'

Also added cmnError.Unwrap() for compatibility with stdlib.

Contributors Checklist

  • Added new tests, or not needed, or not feasible
  • Provided an example (e.g. screenshot) to aid review or the PR is self-explanatory
  • Updated the official documentation or not needed
  • No breaking changes were made, or a BREAKING CHANGE: xxx message was included in the description
  • Added references to related issues and PRs
  • Provided any useful hints for running manual tests
  • Added new benchmarks to generated graphs, if any. More info here.

Maintainers Checklist

  • Checked that the author followed the guidelines in CONTRIBUTING.md
  • Checked the conventional-commit (especially PR title and verb, presence of BREAKING CHANGE: in the body)
  • Ensured that this PR is not a significant change or confirmed that the review/consideration process was appropriate for the change

@github-actions github-actions bot added the 📦 🌐 tendermint v2 Issues or PRs tm2 related label Jun 20, 2023
Instead of 'internal error' and a long stack trace, now we have an
understandable output 'package already exists: pkg/name'

Also added cmnError.Unwrap() for compatibility with stdlib.
@moul
Copy link
Member

moul commented Jun 27, 2023

LGTM 👍

Next times, share before/after result, please.

@moul moul merged commit f12c6bc into gnolang:master Jun 27, 2023
60 checks passed
@tbruyelle tbruyelle deleted the fix/addPkg-error branch June 27, 2023 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📦 🌐 tendermint v2 Issues or PRs tm2 related
Projects
Status: Done
Status: No status
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants