You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I'm currently trying to debug an issue when running github.com/shirou/gopsutil/v4/host.Info() in a Windows 2019 k8s node and for some reason it fails (I could already figure out the reason, but it's not the focus here). The error message is short and not helpful:
The system cannot find the file specified.
There's no information about which one of the InfoStat fields caused the issue and which file cannot be found.
Describe the solution you'd like
I would like the error to provide all the additional context related to the error. For example, if the problem happens when trying to fill in the InfoStat.KernelVersion field:
KernelVersion: the system cannot find the file "<whatever file it tried to find>"
Describe alternatives you've considered
None so far.
Additional context
None so far.
The text was updated successfully, but these errors were encountered:
Working on a refactor (on the host package) to use fmt.Errorf on some key error returns to add some textual context in order to make error messages more helpful.
Is your feature request related to a problem? Please describe.
I'm currently trying to debug an issue when running
github.com/shirou/gopsutil/v4/host.Info()
in a Windows 2019 k8s node and for some reason it fails (I could already figure out the reason, but it's not the focus here). The error message is short and not helpful:There's no information about which one of the
InfoStat
fields caused the issue and which file cannot be found.Describe the solution you'd like
I would like the error to provide all the additional context related to the error. For example, if the problem happens when trying to fill in the
InfoStat.KernelVersion
field:Describe alternatives you've considered
None so far.
Additional context
None so far.
The text was updated successfully, but these errors were encountered: