From 163e28d286975216e26fe37c9c73992c0c59c3b8 Mon Sep 17 00:00:00 2001 From: Yaser Afshar Date: Fri, 8 May 2020 19:38:53 -0500 Subject: [PATCH] update the error message to make it more expressive --- kim_property/create.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kim_property/create.py b/kim_property/create.py index b7bb0fe..30d494d 100644 --- a/kim_property/create.py +++ b/kim_property/create.py @@ -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 '