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

Propagate package manifest parsing errors #86

Merged
merged 7 commits into from
Aug 19, 2020
Merged

Conversation

MaxDesiatov
Copy link
Collaborator

Previously, initial manifest parsing error was ignored with try? and ToolchainError.missingPackageManifest was thrown instead. Now the package property is no longer optional, but is of Result type, where the package manifest parsing error is stored and re-thrown later.

Resolves #78.

@MaxDesiatov MaxDesiatov added the bug Something isn't working label Aug 17, 2020
@MaxDesiatov MaxDesiatov changed the base branch from cleanup-connections to main August 17, 2020 16:34
carson-katri
carson-katri previously approved these changes Aug 18, 2020
@MaxDesiatov
Copy link
Collaborator Author

I've removed unused ToolchainError case, which I initially added, but didn't end up using.

@MaxDesiatov MaxDesiatov merged commit a2e928a into main Aug 19, 2020
@MaxDesiatov MaxDesiatov deleted the package-manifest-error branch August 19, 2020 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Print the error output of swift package dump-package
4 participants