[pve-devel] [PATCH guest-common v4 2/6] mapping: pci: assert_valid: reword error messages
Dominik Csapak
d.csapak at proxmox.com
Thu Jun 6 11:21:57 CEST 2024
makes them a bit clearer
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
split out in v4
src/PVE/Mapping/PCI.pm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/PVE/Mapping/PCI.pm b/src/PVE/Mapping/PCI.pm
index 3fba0c4..eb99819 100644
--- a/src/PVE/Mapping/PCI.pm
+++ b/src/PVE/Mapping/PCI.pm
@@ -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};
--
2.39.2
More information about the pve-devel
mailing list