diff options
Diffstat (limited to 'collector/powersupplyclass.go')
-rw-r--r-- | collector/powersupplyclass.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/collector/powersupplyclass.go b/collector/powersupplyclass.go index 309b08c..adebf0e 100644 --- a/collector/powersupplyclass.go +++ b/collector/powersupplyclass.go | |||
@@ -59,7 +59,7 @@ func (c *powerSupplyClassCollector) Update(ch chan<- prometheus.Metric) error { | |||
59 | if errors.Is(err, os.ErrNotExist) { | 59 | if errors.Is(err, os.ErrNotExist) { |
60 | return ErrNoData | 60 | return ErrNoData |
61 | } | 61 | } |
62 | return fmt.Errorf("could not get power_supply class info: %s", err) | 62 | return fmt.Errorf("could not get power_supply class info: %w", err) |
63 | } | 63 | } |
64 | for _, powerSupply := range powerSupplyClass { | 64 | for _, powerSupply := range powerSupplyClass { |
65 | 65 | ||