Docker-in-Docker (DinD) capabilities of public runners deactivated. More info

Commit 58aa8ae3 authored by Pierre Aubert's avatar Pierre Aubert
Browse files

Use excetion now

parent 99f63c48
Pipeline #92682 passed with stages
in 3 minutes and 52 seconds
......@@ -780,8 +780,9 @@ std::string ph5_backendTableSourceUpdateArrayDim(const PTable & table){
body += "\tH5::ArrayType arrayType = compType.getMemberArrayType(indexCol);\n";
body += "\t//Check if the number of dientions matches\n";
body += "\tif(arrayType.getArrayNDims() != "+convertToString(nbDim)+"){\n";
body += "\t\tstd::cerr << \""+name+"::readDim" + firstToUpper(it->getName()) + " wrong number of dimentions : expect "+convertToString(nbDim)+" but \"<< arrayType.getArrayNDims() <<\" provided from the file\" << std::endl;\n";
body += "\t\treturn;\t//We have to throw an exception!!!\n";
body += "\t\tstd::stringstream strError;\n";
body += "\t\tstrError << \""+name+"::readDim" + firstToUpper(it->getName()) + " wrong number of dimentions : expect "+convertToString(nbDim)+" but \"<< arrayType.getArrayNDims() <<\" provided from the file\" << std::endl;\n";
body += "\t\tthrow std::runtime_error(strError.str());\n";
body += "\t}\n";
body += "\thsize_t dims["+convertToString(nbDim)+"];\n";
body += "\tarrayType.getArrayDims(dims);\n";
......@@ -858,6 +859,7 @@ std::string ph5_backendTableSource(const PTable & table){
std::string ph5_backendSource(const PSource & source){
std::string body(ph5_licenceSaveStr());
body += "#include <string.h>\n";
body += "#include <sstream>\n";
body += "#include \""+eraseExtension(source.getName())+".h\"\n\n";
const PVecTable & vecTable = source.getVecTable();
for(PVecTable::const_iterator it(vecTable.begin()); it != vecTable.end(); ++it){
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment