Skip to content
Snippets Groups Projects
Commit c3bf713e authored by Giovanni Bussi's avatar Giovanni Bussi
Browse files

small fix

parent 415c36c5
No related branches found
No related tags found
No related merge requests found
......@@ -153,7 +153,8 @@ extern "C" void plumed_plumedmain_cmd_nothrow(void*plumed,const char*key,const v
} catch(const std::exception & e) {
nothrow.handler(nothrow.ptr,10000,e.what(),nullptr);
} catch(...) {
std::cerr<<"+++ rethrowing an unknown error happened while using a plumed cmd"<<std::endl;
// if exception cannot be translated, we throw a bad_exception
nothrow.handler(nothrow.ptr,11500,"plumed could not translate exception",nullptr);
throw;
}
}
......
......@@ -1228,7 +1228,7 @@ class Plumed {
} catch(const ::std::exception & e) {
throw Plumed::std_exception(e.what());
} catch(...) {
throw;
throw Plumed::std_bad_exception("plumed could not translate exception");
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment