distro/rhel8: clarify partition table error message

The previous error didn't make it clear where the issue was coming from.
Now it explains that the problem is that a partition table for a given
architecture isn't specified on the image type.
This commit is contained in:
Achilleas Koutsou 2023-01-27 16:48:55 +01:00 committed by Ondřej Budai
parent e56445593c
commit f35d37188b

View file

@ -148,7 +148,7 @@ func (t *imageType) getPartitionTable(
basePartitionTable, exists := t.basePartitionTables[archName]
if !exists {
return nil, fmt.Errorf("unknown arch: " + archName)
return nil, fmt.Errorf("no partition table defined for architecture %q for image type %q", archName, t.Name())
}
imageSize := t.Size(options.Size)