Merge pull request #29917 from rhvgoyal/output-device-id
devmapper: Return device id in error message
This commit is contained in:
commit
c43bac064b
1 changed files with 1 additions and 1 deletions
|
@ -151,7 +151,7 @@ func (d *Driver) Remove(id string) error {
|
|||
|
||||
// This assumes the device has been properly Get/Put:ed and thus is unmounted
|
||||
if err := d.DeviceSet.DeleteDevice(id, false); err != nil {
|
||||
return err
|
||||
return fmt.Errorf("failed to remove device %v:%v", id, err)
|
||||
}
|
||||
|
||||
mp := path.Join(d.home, "mnt", id)
|
||||
|
|
Loading…
Add table
Reference in a new issue