Skip to content

Move custom errors to separate package #1530

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

Merged
merged 3 commits into from
Oct 22, 2021
Merged

Conversation

silvanocerza
Copy link
Contributor

Please check if the PR fulfills these requirements

  • The PR has no duplicates (please search among the Pull Requests
    before creating one)
  • The PR follows
    our contributing guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • UPGRADING.md has been updated with a migration guide (for breaking changes)
  • What kind of change does this PR introduce?

Refactors some code.

  • What is the current behavior?

Custom errors used internally and returned via gRPC are declared in the commands package. This stops us from using these errors in some packages because of import loops.

  • What is the new behavior?

All custom errors have been moved into their own errors package.

Nope.

  • Other information:

None.


See how to contribute

@silvanocerza silvanocerza added type: enhancement Proposed improvement topic: code Related to content of the project itself labels Oct 22, 2021
@silvanocerza silvanocerza requested a review from a team October 22, 2021 09:25
@silvanocerza silvanocerza self-assigned this Oct 22, 2021
@silvanocerza silvanocerza force-pushed the scerza/errors-enhancement branch from 13c2ddb to 478205e Compare October 22, 2021 10:15
@silvanocerza silvanocerza merged commit 1df5cb8 into master Oct 22, 2021
@silvanocerza silvanocerza deleted the scerza/errors-enhancement branch October 22, 2021 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants