New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add error cause for statck trace #1910
Conversation
tonybase
commented
Apr 2, 2022
•
edited
edited
Codecov Report
@@ Coverage Diff @@
## main #1910 +/- ##
==========================================
- Coverage 80.85% 80.75% -0.11%
==========================================
Files 80 81 +1
Lines 3573 3606 +33
==========================================
+ Hits 2889 2912 +23
- Misses 477 487 +10
Partials 207 207
Continue to review full report at Codecov.
|
* add error cause for statck trace
return fmt.Sprintf("error: code = %d reason = %s message = %s metadata = %v cause = %v", e.Code, e.Reason, e.Message, e.Metadata, e.cause) |