diff --git a/common/lib/kernel/devices/ip_device.cpp b/common/lib/kernel/devices/ip_device.cpp index 9b13692d8..0b850e654 100644 --- a/common/lib/kernel/devices/ip_device.cpp +++ b/common/lib/kernel/devices/ip_device.cpp @@ -10,15 +10,16 @@ #include #include +#include #include using villas::kernel::devices::IpDevice; IpDevice IpDevice::from(const std::filesystem::path unsafe_path) { if (!is_path_valid(unsafe_path)) - throw std::runtime_error( - "Path \"" + unsafe_path.u8string() + - "\" failed validation as IpDevicePath \"[adress in hex].[name]\". "); + throw RuntimeError( + "Path {} failed validation as IpDevicePath [adress in hex].[name] ", + unsafe_path.u8string()); return IpDevice(unsafe_path); }