Merge pull request from rhvgoyal/output-device-id

devmapper: Return device id in error message
This commit is contained in:
Tibor Vass 2017-01-06 17:36:18 -08:00 committed by GitHub
commit c43bac064b

View file

@ -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)