nvme: Wrap underlying errors instead of hiding them (#397)
nvme: Wrap underlying errors instead of hiding them (#397)

Prometheus node exporter checks the returned error variable of
`NVMeClass` for being `os.ErrNotExist`. This check will never match,
because `NVMeClass` uses `fmt.Errorf` to convert the error.

So wrap the error result using `%w` to allow checking for
`os.ErrNotExist`.

Signed-off-by: Benjamin Drung <86a6db991ec5c1a96f98c92b98df9d547d7c8c84@ionos.com>
prometheus/procfs,prometheus/procfs