mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
gVisor KVM: Use the KVM device path that was actually opened in error message.
PiperOrigin-RevId: 429138394
This commit is contained in:
committed by
gVisor bot
parent
55aa2b2b23
commit
d8500d0467
@@ -84,7 +84,7 @@ func OpenDevice() (*os.File, error) {
|
||||
}
|
||||
f, err := os.OpenFile(dev, unix.O_RDWR, 0)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("error opening /dev/kvm: %v", err)
|
||||
return nil, fmt.Errorf("error opening KVM device file (%s): %v", dev, err)
|
||||
}
|
||||
return f, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user