diff --git a/pkg/device/dev_linux.go b/pkg/device/dev_linux.go index b6920d876..98b59fe8b 100644 --- a/pkg/device/dev_linux.go +++ b/pkg/device/dev_linux.go @@ -28,7 +28,7 @@ func (t LinuxDevicesInfoGetter) GetMounts() (Devices, error) { devices, err := readMountsFile(file) if err != nil { if cerr := file.Close(); cerr != nil { - return nil, fmt.Errorf("%w; %s", err, cerr) + return nil, fmt.Errorf("%w; %w", err, cerr) } return nil, err }