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: Abort compiler when rpc fails as unauthenticated #2887

Merged
merged 3 commits into from
Oct 19, 2023

Conversation

andrewmbenton
Copy link
Collaborator

I took the approach of adding an exported error from the rpc package to describe what happened, rather than adding an error like ErrAbort which describes an expected outcome.

Comment on lines 94 to 96
if errors.Is(err, rpc.ErrUnauthenticated) {
break fileLoop
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we can just return early here return nil, merr

@kyleconroy kyleconroy merged commit bd9919d into main Oct 19, 2023
8 checks passed
@kyleconroy kyleconroy deleted the andrew/analyzer-abort branch October 19, 2023 19:47
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