Add line breaks to error message.

Fixes https://github.com/jensengroup/propka/pull/109#discussion_r533131022
This commit is contained in:
Nathan Baker
2020-12-01 06:40:44 -08:00
parent de020599d3
commit e081bd53b3

View File

@@ -164,17 +164,9 @@ class LigandPkaValues:
stderr=subprocess.PIPE).communicate() stderr=subprocess.PIPE).communicate()
if len(errors) > 0: if len(errors) > 0:
err = ( err = (
f'***********************************************************' f'Error: Marvin execution failed: {errors}\n'
f'*********************************************' f'Please edit the ligand mol2 file and re-run PropKa with '
f'* Error: Marvin execution failed: ' f'the -l option: {filename}'
f' *'
f'* {errors:<100s} *'
f'* '
f' *'
f'* Please edit the ligand mol2 file and re-run PropKa with '
f'the -l option: {filename:>29s} *'
f'***********************************************************'
f'*********************************************'
) )
_LOGGER.error(err) _LOGGER.error(err)
raise OSError(err) raise OSError(err)