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:
parent
7fde2c0535
commit
3a08e57516
1 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue