Skip to content

Commit

Permalink
update the error message to make it more expressive
Browse files Browse the repository at this point in the history
  • Loading branch information
yafshar committed May 9, 2020
1 parent b3b0f49 commit 163e28d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions kim_property/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,9 @@ def kim_property_create(instance_id, property_name, property_instances=None):

# Check to make sure that this property does not exist in OpenKIM
if _property_id in kim_properties:
msg = 'the input property_name file contains a '
msg += 'property ID which already exists in OpenKIM.'
msg = 'the input property_name file contains a property ID:\n'
msg += '"{}"\nwhich already '.format(_property_id)
msg += 'exists in the KIM Property Definition list.\n'
msg += 'Use the KIM Property Definition or update the ID in the'
msg += 'property_name file.\n'
msg += 'See the KIM Property Definitions at '
Expand Down

0 comments on commit 163e28d

Please sign in to comment.