using only sls exceptions

This commit is contained in:
Erik Frojdh
2019-03-14 17:09:44 +01:00
parent bad44f5bf4
commit 9f724f0c0d
8 changed files with 29 additions and 16 deletions

View File

@ -385,7 +385,7 @@ std::string multiSlsDetector::exec(const char *cmd) {
std::string result = "";
FILE *pipe = popen(cmd, "r");
if (!pipe) {
throw std::exception();
throw RuntimeError("Could not open pipe");
}
try {
while (!feof(pipe)) {