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

small fix to exception

should have gone with 296964c2
parent 0cf477db
No related branches found
No related tags found
No related merge requests found
...@@ -44,7 +44,8 @@ Exception::Exception(): ...@@ -44,7 +44,8 @@ Exception::Exception():
free(strs); free(strs);
} }
#endif #endif
if(stackString.length()>0 && !strcmp(getenv("PLUMED_STACK_TRACE"),"yes")) { const char* env=getenv("PLUMED_STACK_TRACE");
if(stackString.length()>0 && env && !strcmp(env,"yes")) {
msg+="\n\n********** STACK DUMP **********\n"; msg+="\n\n********** STACK DUMP **********\n";
msg+=stackString; msg+=stackString;
msg+="\n********** END STACK DUMP **********\n"; msg+="\n********** END STACK DUMP **********\n";
......
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