From 617ec35c575e6add6a7947b70eb263e1e8ed2aeb Mon Sep 17 00:00:00 2001 From: Achilleas Koutsou Date: Wed, 14 Dec 2022 17:17:24 +0100 Subject: [PATCH] distro/rhel9: 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. Co-Authored-By: Christian Kellner --- internal/distro/rhel9/imagetype.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/distro/rhel9/imagetype.go b/internal/distro/rhel9/imagetype.go index 3db9e769a..be852bdff 100644 --- a/internal/distro/rhel9/imagetype.go +++ b/internal/distro/rhel9/imagetype.go @@ -152,7 +152,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)