Skip to content

fix: improve error handling, add godoc, and fix bugs across core packages#2328

Open
diegofornalha wants to merge 1 commit intosipeed:mainfrom
diegofornalha:fix/code-quality
Open

fix: improve error handling, add godoc, and fix bugs across core packages#2328
diegofornalha wants to merge 1 commit intosipeed:mainfrom
diegofornalha:fix/code-quality

Conversation

@diegofornalha
Copy link
Copy Markdown

Summary

  • pkg/pid: log os.Remove errors instead of ignoring, fix Windows syscall
  • pkg/session: add godoc to all exported methods, handle os.MkdirAll error
  • pkg/logger: fix nil err in Errorf, handle logFile.Close errors, add godoc
  • pkg/cron: add input validation in AddJob, add godoc to all exported methods
  • pkg/config: log SaveConfig errors during migration, add godoc

Test plan

  • Verify existing tests pass (go test ./pkg/...)
  • Check godoc renders correctly
  • Confirm no regressions in error paths

🤖 Generated with Claude Code

…ages

- pkg/pid: log os.Remove errors instead of ignoring, fix Windows syscall
- pkg/session: add godoc to all exported methods, handle os.MkdirAll error
- pkg/logger: fix nil err in Errorf, handle logFile.Close errors, add godoc
- pkg/cron: add input validation in AddJob, add godoc to all exported methods
- pkg/config: log SaveConfig errors during migration, add godoc

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant