mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-12 12:57:13 +02: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