diff options
Diffstat (limited to 'src/devreader-linux.cpp')
-rw-r--r-- | src/devreader-linux.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/devreader-linux.cpp b/src/devreader-linux.cpp index 5b6e9eb..85824cd 100644 --- a/src/devreader-linux.cpp +++ b/src/devreader-linux.cpp @@ -14,6 +14,8 @@ #include <string> #include <list> +#include <stdexcept> + using namespace std; bool DevReaderLinux::isAvailable() @@ -28,6 +30,6 @@ list<string> DevReaderLinux::findAllDevices() else if(DevReaderLinuxProc::isAvailable()) return DevReaderLinuxProc::findAllDevices(); else - return list<string>(); + throw std::runtime_error("neither sysfs nor proc is available"); } |