Skip to content

Conversation

@Mubashwer
Copy link
Owner

@Mubashwer Mubashwer commented Jul 16, 2025

Description

Improve error handling with contextual error messages

  • Migrate from Box<dyn Error> to anyhow for better error handling
  • Add contextual error messages throughout the codebase using anyhow::Context
  • Use bail! macro for cleaner error creation
  • Provide more helpful error messages for git command failures
  • Add specific context for team member and mob session operations
  • Update test expectations to match new error message format

Users now get more informative error messages with context about what operation failed and why.

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes.

Checklist

  • My code is formatted with rustfmt
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas N/A
  • I have made corresponding changes to the documentation N/A
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit and integration tests pass locally with my changes

Repository owner deleted a comment from codecov bot Jul 16, 2025
- Migrate from Box<dyn Error> to anyhow for better error handling
- Add contextual error messages throughout the codebase using anyhow::Context
- Use bail! macro for cleaner error creation
- Provide more helpful error messages for git command failures
- Add specific context for team member and mob session operations
- Update test expectations to match new error message format

Users now get more informative error messages with context about what operation failed and why.
@codecov
Copy link

codecov bot commented Jul 16, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.80%. Comparing base (1981ee7) to head (d0f0913).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #109      +/-   ##
==========================================
+ Coverage   98.43%   98.80%   +0.36%     
==========================================
  Files           8        8              
  Lines         320      334      +14     
==========================================
+ Hits          315      330      +15     
+ Misses          5        4       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Mubashwer Mubashwer changed the title feat: improve error handling with contextual error messages (WIP) feat: improve error handling with contextual error messages Jul 19, 2025
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.

2 participants