Commit 612ca414 authored by Jason Swails's avatar Jason Swails
Browse files

Tweak error message formatting.

parent 64ebc791
...@@ -22,9 +22,9 @@ else: ...@@ -22,9 +22,9 @@ else:
def run_tests(): def run_tests():
if simtk_import_failed: if simtk_import_failed:
raise TestingError('Failed to import OpenMM packages; Make sure OpenMM\n' raise TestingError('Failed to import OpenMM packages; Make sure OpenMM'
'is installed and the library path is set correctly.\n' 'is installed and the library path is set correctly.'
'Error message: %s' % simtk_import_error) '\n\tError message: %s' % simtk_import_error)
# Create a System for the tests. # Create a System for the tests.
data_dir = os.path.join(os.path.abspath(os.path.split(__file__)[0]), 'openmm', 'app', 'data') data_dir = os.path.join(os.path.abspath(os.path.split(__file__)[0]), 'openmm', 'app', 'data')
pdb = PDBFile(os.path.join(data_dir, 'test.pdb')) pdb = PDBFile(os.path.join(data_dir, 'test.pdb'))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment