X Tutup
Skip to content

fix(cli): handle ignored errors in ssh and scaletest commands#22852

Merged
mafredri merged 1 commit intomainfrom
fix/errcheck-cli
Mar 10, 2026
Merged

fix(cli): handle ignored errors in ssh and scaletest commands#22852
mafredri merged 1 commit intomainfrom
fix/errcheck-cli

Conversation

@mafredri
Copy link
Member

@mafredri mafredri commented Mar 9, 2026

Handle errors that were previously assigned to blank identifiers in the cli/ package.

Changes

  • ssh.go: Log ExistsViaCoderConnect DNS lookup error at debug level instead of silently discarding it. Fallthrough behavior (treating failure as "not exists") is preserved, but failures are now visible in debug logs.
  • exp_scaletest_llmmock.go: Log srv.Stop() error via the existing logger instead of discarding it.

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 🏂🏻.

- ssh.go: Log ExistsViaCoderConnect DNS lookup error at debug level
  instead of silently discarding it. Fallthrough behavior preserved.
- exp_scaletest_llmmock.go: Log srv.Stop() error via the existing
  logger instead of discarding it.
@mafredri mafredri merged commit 41c505f into main Mar 10, 2026
22 checks passed
@mafredri mafredri deleted the fix/errcheck-cli branch March 10, 2026 10:08
@github-actions github-actions bot locked and limited conversation to collaborators Mar 10, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

X Tutup