Add line breaks to error message.
Fixes https://github.com/jensengroup/propka/pull/109#discussion_r533131022
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user