megaease / easeprobe

A simple, standalone, and lightweight tool that can do health/status checking, written in Go.
Apache License 2.0
2.18k stars 231 forks source link

add option to print output when meet error #560

Closed suchen-sci closed 2 months ago

suchen-sci commented 2 months ago

This PR add a with_output option that, when enabled, appends the output to the error message. This way, if an error occurs, users can immediately see what happened, making it easier to diagnose and resolve issues.

codecov-commenter commented 2 months ago

:warning: Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

Attention: Patch coverage is 25.00000% with 9 lines in your changes missing coverage. Please review.

Project coverage is 98.56%. Comparing base (eef3a25) to head (14e1dcd). Report is 55 commits behind head on main.

Files with missing lines Patch % Lines
probe/common.go 25.00% 6 Missing and 3 partials :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #560 +/- ## ========================================== - Coverage 98.80% 98.56% -0.24% ========================================== Files 85 85 Lines 5867 5868 +1 ========================================== - Hits 5797 5784 -13 - Misses 51 62 +11 - Partials 19 22 +3 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.