mirror of
https://github.com/containers/podman.git
synced 2025-06-28 06:18:57 +08:00
pkg: switch to golang native error wrapping
We now use the golang error wrapping format specifier `%w` instead of the deprecated github.com/pkg/errors package. [NO NEW TESTS NEEDED] Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
This commit is contained in:
@ -3,11 +3,9 @@
|
||||
|
||||
package util
|
||||
|
||||
import (
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
import "errors"
|
||||
|
||||
// FindDeviceNodes is not implemented anywhere except Linux.
|
||||
func FindDeviceNodes() (map[string]string, error) {
|
||||
return nil, errors.Errorf("not supported on non-Linux OSes")
|
||||
return nil, errors.New("not supported on non-Linux OSes")
|
||||
}
|
||||
|
Reference in New Issue
Block a user