1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

devmapper: clearer make the 'unknown base hash' error message more understandable

This commit is contained in:
Solomon Hykes 2013-10-18 08:22:42 +00:00
parent 73545199a8
commit dfb77274ce

View file

@ -449,8 +449,7 @@ func (devices *DeviceSet) AddDevice(hash, baseHash string) error {
baseInfo := devices.Devices[baseHash]
if baseInfo == nil {
utils.Debugf("Base Hash not found")
return fmt.Errorf("Unknown base hash %s", baseHash)
return fmt.Errorf("Error adding device for '%s': can't find device for parent '%s'", hash, baseHash)
}
deviceId := devices.allocateDeviceId()