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
{{ message }}
Repository navigation
Add Error Context Preservation to Simplified Error Handling #829
Add Error Context Preservation to Simplified Error Handling
Description
The recent error handling refactor removed valuable context information from handleApiError calls. While this simplified the API, it may make debugging production issues more challenging. We need to restore essential context while maintaining the simplified interface.
Scope
src/shared/error/errorHandler.ts
All application layer modules that use handleApiError
Error handling patterns across the codebase
Motivation
Debugging production issues requires sufficient context
Current simplified calls lose operation and component information
Balance needed between simplicity and debugging capability
Maintain clean architecture while preserving error traceability
Acceptance Criteria
Create enhanced handleApiError function that preserves essential context
Update error handling to include operation and module information
Maintain backward compatibility with current simplified calls
Add TypeScript types for error context
Update at least 5 application modules to use enhanced error handling
Ensure error logging includes sufficient debugging information
Activity