X Tutup
Skip to content

fix(agent): handle ignored errors in agentproc and filefinder#22853

Open
mafredri wants to merge 1 commit intomainfrom
fix/errcheck-agent
Open

fix(agent): handle ignored errors in agentproc and filefinder#22853
mafredri wants to merge 1 commit intomainfrom
fix/errcheck-agent

Conversation

@mafredri
Copy link
Member

@mafredri mafredri commented Mar 9, 2026

Properly handle errors that were previously assigned to blank identifiers in the agent/ package tree.

Changes

  • agentproc/process.go: Log cmd.Wait() error at debug level. The error is expected after cancellation but should be visible for diagnostics.
  • filefinder/watcher_fs.go: Log filepath.Walk errors at warning level instead of silently discarding them. This is best-effort directory walking, so a warning is appropriate.

Part of the effort to enable errcheck.check-blank in golangci-lint.


🤖 This PR was created with the help of Coder Agents, and reviewed by a human 🏂🏻.

Log a warning when filepath.Walk fails during recursive directory
watching instead of silently discarding the error.
@mafredri mafredri force-pushed the fix/errcheck-agent branch from 52d99b5 to 3b2a3be Compare March 9, 2026 18:26
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.

1 participant

X Tutup