Skip to content

Commit

Permalink
Merge pull request #129 from marrink-lab/msg-repair
Browse files Browse the repository at this point in the history
Improve error message when residue is not recognozed by repair_graph
  • Loading branch information
pckroon committed Sep 29, 2018
2 parents 3fc016b + 4789b35 commit fea0345
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions vermouth/processors/repair_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,8 +306,9 @@ def run_system(self, system):
if not self.delete_unknown:
raise err
else:
LOGGER.warning("Can't recognize molecule {}. Deleting.",
idx, type='unknown-residue')
LOGGER.warning("Cannot recognize residue {} in molecule {}. "
"Deleting the molecule.",
str(err), idx, type='unknown-residue')
else:
mols.append(new_molecule)
system.molecules = mols

0 comments on commit fea0345

Please sign in to comment.