Skip to content

refactor: using fmt.Errorf in InfoWithContext #1840

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

Merged
merged 1 commit into from
Apr 19, 2025

Conversation

s0ders
Copy link
Contributor

@s0ders s0ders commented Apr 17, 2025

The following brings:

  • Refactoring of InfoWithContext to wrap errors with fmt.Errorf in order to add textual context, making error messages more helpful for the end user.

ref: #1836

The following brings:
- Refactoring of `InfoWithContext` to wrap errors with `fmt.Errorf` in
  order to add textual context, making error message more helpful for
  the end user.

ref: 1836
@s0ders s0ders changed the title refactor: using fmt.Errorf on some error returns. refactor: using fmt.Errorf in InfoWithContext Apr 17, 2025
Copy link
Owner

@shirou shirou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're absolutely right. Improving error messages like this PR is definitely important. Thank you!

@shirou shirou merged commit f9f5620 into shirou:master Apr 19, 2025
65 of 69 checks passed
@s0ders s0ders deleted the refactor/host-info-error-msg branch April 19, 2025 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants