1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

fix exception strings getting lost because of rethrowing them

Signed-off-by: Niklas Eiling <niklas.eiling@eonerc.rwth-aachen.de>
This commit is contained in:
Niklas Eiling 2023-10-23 16:53:09 +02:00 committed by Steffen Vogel
parent 7fde2c0535
commit 3a08e57516

View file

@ -203,9 +203,13 @@ std::shared_ptr<Device> Container::attachDevice(pci::Device &pdev) {
try {
pdev.rewriteBar();
} catch (std::exception &e) {
throw RuntimeError(
"BAR of device is in inconsistent state. Rewriting the BAR "
"failed. Please remove, rescan and reset the device and try again.");
e.what() +
std::string(
"\nBAR of device is in inconsistent state. Rewriting the BAR "
"failed. Please remove, rescan and reset the device and "
"try again."));
}
// Get IOMMU group of device