From 1f19e42416f08dd9422e80659c72a62a20c737cc Mon Sep 17 00:00:00 2001 From: Pascal Bauer Date: Wed, 25 Sep 2024 15:40:50 +0200 Subject: [PATCH] Use villas exception Signed-off-by: Pascal Bauer --- common/lib/kernel/devices/ip_device.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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); }