Skip to content
Snippets Groups Projects
  • Giovanni Bussi's avatar
    0b159ed2
    Catch errors in PlumedMain::cmd() · 0b159ed2
    Giovanni Bussi authored
    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
    0b159ed2
    History
    Catch errors in PlumedMain::cmd()
    Giovanni Bussi authored
    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
Code owners
Assign users and groups as approvers for specific file changes. Learn more.