From e750fc58cd1fb98368a838ec06fa4e67630a981c Mon Sep 17 00:00:00 2001 From: Daniel Milde Date: Thu, 2 May 2024 10:28:51 +0200 Subject: [PATCH] fix: error wrap --- pkg/device/dev_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }