mirror of
https://git.proxmox.com/git/pve-guest-common
synced 2025-04-29 04:25:00 +00:00
mapping: pci: assert_valid: reword error messages
makes them a bit clearer Signed-off-by: Dominik Csapak <d.csapak@proxmox.com> Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
903d06de13
commit
8052f6f96f
@ -161,9 +161,9 @@ sub assert_valid {
|
||||
next if $prop eq 'iommugroup' && $idx > 0; # check iommu only on the first device
|
||||
|
||||
next if !defined($correct_props->{$prop}) && !defined($mapping->{$prop});
|
||||
die "no '$prop' for device '$path'\n"
|
||||
die "missing expected property '$prop' for device '$path'\n"
|
||||
if defined($correct_props->{$prop}) && !defined($mapping->{$prop});
|
||||
die "'$prop' configured but should not be\n"
|
||||
die "unexpected property '$prop' configured for device '$path'\n"
|
||||
if !defined($correct_props->{$prop}) && defined($mapping->{$prop});
|
||||
|
||||
my $correct_prop = $correct_props->{$prop};
|
||||
|
Loading…
Reference in New Issue
Block a user