mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-04 12:41:42 +00:00
devmapper: clearer make the 'unknown base hash' error message more understandable
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user