You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit enhances error handling and logging across various components, including service initialization, package management, and API responses. It ensures that critical errors are logged with sufficient context and that failures during operations like file operations, service initialization, and transaction commits are handled more gracefully.
Key improvements include:
- More robust error checking and logging for service initialization in `container.go`.
- Improved error handling for file operations in CLI commands (`list.go`, `logs.go`, `package_service.go`, `git.go`, `github.go`, `runner.go`).
- Enhanced transaction management by using a helper function `rollbackTx` to consistently handle rollback scenarios and log potential errors.
- Added `fmt.Errorf` with `%w` for better error wrapping in `core/services` and `packages` directories.
- Refined process management with more explicit error handling during `Stop` and `Wait` operations.
- Improved error reporting for MCP server operations, including graceful shutdown procedures and configuration saving.
- Added specific error handling for SSE write operations in UI handlers to prevent panics and log issues.
- Added a fallback for crypto/rand in `id_generator.go` to ensure ID generation in all environments.
- General cleanup and minor refactors for better code readability and maintainability.
0 commit comments