mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
sample device plugin: fix incorrect Errorf invocation
Linting together with an upcoming klog update finds this problem: test/images/sample-device-plugin/sampledeviceplugin.go:165:4: printf: k8s.io/klog/v2.Errorf does not support error-wrapping directive %w (govet) klog.Errorf("Failed to add watch to %q: %w", triggerPath, err) ^
This commit is contained in:
parent
4aea803f3f
commit
af14f97cba
@ -162,7 +162,7 @@ func main() {
|
||||
|
||||
err = watcher.Add(triggerPath)
|
||||
if err != nil {
|
||||
klog.Errorf("Failed to add watch to %q: %w", triggerPath, err)
|
||||
klog.Errorf("Failed to add watch to %q: %v", triggerPath, err)
|
||||
panic(err)
|
||||
}
|
||||
for {
|
||||
|
Loading…
Reference in New Issue
Block a user