Skip to content

fix bug in using lexically scoped errors and add missing ctx in tests#198

Open
r0mflip wants to merge 1 commit intogoogle:masterfrom
r0mflip:errfix
Open

fix bug in using lexically scoped errors and add missing ctx in tests#198
r0mflip wants to merge 1 commit intogoogle:masterfrom
r0mflip:errfix

Conversation

@r0mflip
Copy link
Collaborator

@r0mflip r0mflip commented Feb 27, 2026

No description provided.


if err != nil {
return err
if rsErr != nil {
Copy link
Collaborator

Choose a reason for hiding this comment

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

This loses the error from line 179. I think a better way to fix this would be to drop the predeclared outer err/rsErr entirely and instead pull the client.FindRepoSpec call out of the if-else block so that it only happens once. This seems to be what was actually intended, based on the fact that pi gets updated inside the if pi.Ver = "" case.

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