Skip to content

Must support Custom error handler.#752

Merged
samber merged 6 commits intosamber:masterfrom
RelicOfTesla:master_userCustomMust
Jan 8, 2026
Merged

Must support Custom error handler.#752
samber merged 6 commits intosamber:masterfrom
RelicOfTesla:master_userCustomMust

Conversation

@RelicOfTesla
Copy link
Contributor

@RelicOfTesla RelicOfTesla commented Dec 10, 2025

Support user custom error handle in Must() ( like attach the callstack information );
Support Must("foo", customErr{}) to restore customErr type(ErrorsAs).

// Deprecated old pull #419 , Adopting a less invasive code approach

@samber
Copy link
Owner

samber commented Jan 8, 2026

Hey @RelicOfTesla !

Thanks for that suggestion. I Confirm this is much less invasive !

@samber samber merged commit eb9719c into samber:master Jan 8, 2026
10 checks passed
@codecov
Copy link

codecov bot commented Jan 8, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.23%. Comparing base (a2553e5) to head (b697ea6).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #752   +/-   ##
=======================================
  Coverage   94.23%   94.23%           
=======================================
  Files          18       18           
  Lines        2880     2880           
=======================================
  Hits         2714     2714           
  Misses        150      150           
  Partials       16       16           
Flag Coverage Δ
unittests 94.23% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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.

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