Skip to content

Commit

Permalink
update error message (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
rvhonorato authored Jun 12, 2023
1 parent 71b4509 commit b570169
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions prodigy/lib/freesasa_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,13 @@ def execute_freesasa_api(structure):
)
result = calc(struct)
except AssertionError as e:
error_message = (
"\n[!] Error when running freesasa: \n[!] {}".format(e)
error_message = "" + os.linesep()
error_message += "[!] Error when running freesasa:" + os.linesep()
error_message += f"[!] {e}" + os.linesep()
error_message += (
"[!] Make sure the atom names in your PDB file match"
" the canonical naming and belong "
"to default residues" + os.linesep()
)
print(error_message)
raise Exception(error_message)
Expand Down

0 comments on commit b570169

Please sign in to comment.