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

Catch errors in PlumedMain::cmd()

I added a try/catch block so that any error that arises within a
cmd() call is also reported on the log file (if open).

In principle, this should allow removing all the duplicate code where we
both write on the log and on the plumed_merror.

Notice that in order to satisfy astyle the whole content of PlumedMain::cmd()
has been indented so appears as changed in this commit. Actually, it is only
indented.

This commit closes #319
parent 7b6c4ef5
No related branches found
No related tags found
No related merge requests found
Loading
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