Commit 79109e4c authored by Plaszczynski Stephane's avatar Plaszczynski Stephane
Browse files

throw execp when index not found

parent 3e4e4edf
......@@ -72,7 +72,7 @@ ClassParams::findIndex(const string& name){
index=i; break;
planck_assert(index>=0,string("key ")+name+ " not found in ClassParams");
if (index<0) throw Message_error(string("key ")+name+ " not found in ClassParams");
return static_cast<size_t>(index);
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