mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-01-17 13:01:12 +01:00
using only sls exceptions
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user