Skip to content

Wrap an error & some linting - #3603

Merged
peterebden merged 2 commits into
thought-machine:masterfrom
peterebden:wrap-err
Sep 15, 2026
Merged

peterebden merged 2 commits into
thought-machine:masterfrom
peterebden:wrap-err

Conversation

@peterebden

Copy link
Copy Markdown
Collaborator

Was hoping I could get golangci to check for this sort of thing, but turns out it isn't that smart. Oh well.

Also reformatted BUILD files because I got a message about it.

return locals, nil
})
pkgScope.Assert(err == nil, "failed to subinclude %s: %s", label, err)
pkgScope.Assert(err == nil, "failed to subinclude %s: %w", label, err)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

This is the main thing I actually wanted. It is a bit more important for output than it used to be that we can classify errors correctly

@peterebden
peterebden merged commit 3982d29 into thought-machine:master Sep 15, 2026
16 checks passed
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