From c7728fdb8580b086312d1a98f63bb69fb2aa95ab Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Mon, 9 Dec 2019 11:29:26 +0100 Subject: [PATCH] followup: minor cleanup/error message spelling Signed-off-by: Thomas Lamprecht --- PVE/QemuServer.pm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 6267cae..5e086df 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -2247,9 +2247,7 @@ sub parse_hostpci { delete $res->{host}; foreach my $id (@idlist) { my $devs = PVE::SysFSTools::lspci($id); - if (!scalar(@$devs)) { - die "no pci device found for '$id'\n"; - } + die "no PCI device found for '$id'\n" if !scalar(@$devs); push @{$res->{pciid}}, @$devs; } return $res; -- 2.39.2