Wrap errors in the Go 1.13 way
Signed-off-by: Julian Kornberger <jk+github@digineo.de>
This commit is contained in:
parent
da0ae76a91
commit
043fecbfd8
21 changed files with 31 additions and 31 deletions
|
|
@ -94,7 +94,7 @@ func (c *mdadmCollector) Update(ch chan<- prometheus.Metric) error {
|
|||
fs, errFs := procfs.NewFS(*procPath)
|
||||
|
||||
if errFs != nil {
|
||||
return fmt.Errorf("failed to open procfs: %v", errFs)
|
||||
return fmt.Errorf("failed to open procfs: %w", errFs)
|
||||
}
|
||||
|
||||
mdStats, err := fs.MDStat()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue