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(nargo): add InvalidPackageError and DependencyResolutionError error types. #1007

Merged
merged 2 commits into from
Mar 20, 2023

Conversation

TomAFrench
Copy link
Member

Related issue(s)

Addresses most instances of #11 in nargo.

Description

Summary of changes

This PR defines InvalidPackageError and DependencyResolutionError to handle issues with malformed packages or invalid dependencies. Previously we would make all of these CliError::Generic errors.

Dependency additions / changes

Test additions / changes

Checklist

  • I have tested the changes locally.
  • I have formatted the changes with Prettier and/or cargo fmt with default settings.
  • I have linked this PR to the issue(s) that it resolves.
  • I have reviewed the changes on GitHub, line by line.
  • I have ensured all changes are covered in the description.

Documentation needs

  • This PR requires documentation updates when merged.

Additional context

@TomAFrench TomAFrench changed the title chore(nargo): add InvalidPackageError and DependencyResolutionError error types. feat(nargo): add InvalidPackageError and DependencyResolutionError error types. Mar 20, 2023
@kevaundray kevaundray added this pull request to the merge queue Mar 20, 2023
@kevaundray kevaundray merged commit 1e6761b into master Mar 20, 2023
@kevaundray kevaundray deleted the dependency-resolution-error branch March 20, 2023 17:41
TomAFrench added a commit that referenced this pull request Mar 20, 2023
* master:
  feat(nargo): add `InvalidPackageError` and `DependencyResolutionError` error types. (#1007)
TomAFrench added a commit that referenced this pull request Mar 20, 2023
* master:
  feat(nargo): add `InvalidPackageError` and `DependencyResolutionError` error types. (#1007)
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.

2 participants