added error mask for loading/writing config file to be caught by python

This commit is contained in:
2018-03-26 18:07:10 +02:00
parent 14546247e4
commit 5340b8ef24
3 changed files with 12 additions and 0 deletions

View File

@ -7265,6 +7265,7 @@ int slsDetector::readConfigurationFile(string const fname){
infile.close();
} else {
std::cout<< "Error opening configuration file " << fname << " for reading" << std::endl;
setErrorMask((getErrorMask())|(CONFIG_FILE));
return FAIL;
}
#ifdef VERBOSE
@ -7362,6 +7363,7 @@ int slsDetector::writeConfigurationFile(string const fname){
}
else {
std::cout<< "Error opening configuration file " << fname << " for writing" << std::endl;
setErrorMask((getErrorMask())|(CONFIG_FILE));
return FAIL;
}
#ifdef VERBOSE